From: HarryO Date: 2001-11-25T09:39:05+09:00 Subject: [ruby-talk:26392] Re: Converting ~fred to home directory path In article <1006646006.774.0.camel@stargrazer>, "Sean Middleditch" 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".