On Mon, May 09 2016, Tomi Ollila <tomi.ollila at iki.fi> wrote: > your code checked that path[0] == '~', but nothing else, e.g. > > ~123randomstuff/... would expand as /home/user23randomstuff/... actually /home/user/23randomstuff/... Tomi