9 Apr
2013
9 Apr
'13
7:20 a.m.
On Tue, Apr 9, 2013 at 6:04 AM, Erlend Hamberg
When you type “~/blah_blah” in your shell, the *shell* will expand “~” to your home directory, so when you pass “~/foo” to a program, that program never sees “~/foo”, but “/home/user/foo”. In other words, “~/blah_blah” probably does *not* exist.
To expand on this, doesFileExist is a thin shim over a low-level OS call. On the other hand, tilde expansion happens at the shell (application) level. -- Kim-Ee