In article <1006646006.774.0.camel / stargrazer>, "Sean Middleditch"
<elanthis / awesomeplay.com> wrote:

> No no.  ~,^  Read the $HOME environment variable.  /etc/passwd might not
> even have the user in it (login over NIS or LDAP).  $HOME is supposed to
> be set by the login shell, so use that.

That will work for just "~", but won't work for "~fred" when I'm logged
in as "jim".