Re: tutorial on HFS versus finder and POSIX file path ?
Re: tutorial on HFS versus finder and POSIX file path ?
- Subject: Re: tutorial on HFS versus finder and POSIX file path ?
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 17 Oct 2006 13:15:55 -0400
On 10/17/06, Mark J. Reed <email@hidden> wrote:
In bash, csh, ksh, zsh, etc, a lone ~ means "the value of the
environment variable $HOME"; $HOME is initialized to your home
directory when you start a login shell. Similarly, ~foo means "user
'foo's home directory as determined by looking them up in the passwd
database".
Note that these only apply at the beginning of a pathname; within an
actual shell, they further apply only when unquoted. So if I happen
to have a file whose name is "~", I can refer to it from the shell as
/path/to/its/folder/~, or, from within that folder, as ./~ or \~ or
"~" or '~'.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden