• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tutorial on HFS versus finder and POSIX file path ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >tutorial on HFS versus finder and POSIX file path ? (From: Yvon Thoraval <email@hidden>)
 >Re: tutorial on HFS versus finder and POSIX file path ? (From: "Mark J. Reed" <email@hidden>)
 >Re: tutorial on HFS versus finder and POSIX file path ? (From: Michelle Steiner <email@hidden>)
 >Re: tutorial on HFS versus finder and POSIX file path ? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: tutorial on HFS versus finder and POSIX file path ?
  • Next by Date: Re: tutorial on HFS versus finder and POSIX file path ?
  • Previous by thread: Re: tutorial on HFS versus finder and POSIX file path ?
  • Next by thread: Re: tutorial on HFS versus finder and POSIX file path ?
  • Index(es):
    • Date
    • Thread