From: haltarac@coyote.rain.org (Henri Altarac)
Subject: Re: I have a question...
Date: 14 Oct 1994 00:38:48 -0700
Date: 1994-10-14T00:38:48-07:00 [thread overview]
Message-ID: <37lci8$pdo@coyote.rain.org> (raw)
In-Reply-To: EMERY.94Oct12173346@goldfinger.mitre.org
David Emery (emery@goldfinger.mitre.org) wrote:
: The easiest way to 'solve' this problem is to expand the "~" into the
: home directory. The environment variable "HOME" contains the pathname
: of the home directory. Thus it's pretty trivial to implement an
: operation that replaces (all) occurances of "~" in a pathname with the
: string value of HOME.
Don't forget that ~user can also be used and expands into user's
home directory.
: To be more accurate/precise, the best thing to do is to obtain the
: pathname to the home directory from the /etc/passwd file, since the
: value of HOME could have been changed by the user.
The passwd file cannot be used if your system is running the Yellow pages.
On SUN, there is a service 'getpwnam' that does the ~user translation.
Henri Altarac
-----
haltarac@rain.org (805)683-3045
next prev parent reply other threads:[~1994-10-14 7:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1994Oct07.034523.161470@zeus.aix.calpoly.edu>
[not found] ` <SPIEGEL.94Oct10115716@moskau.bruessel.informatik.uni-stuttgart.de>
1994-10-12 17:33 ` I have a question David Emery
1994-10-14 1:21 ` Keith Thompson @pulsar
1994-10-14 16:46 ` Andre Spiegel
1994-10-14 14:16 ` David Emery
1994-10-14 21:32 ` Norman H. Cohen
1994-10-17 10:34 ` Ada programs in a UNIX environment (was Re: I have a question...) Andre Spiegel
1994-10-15 11:28 ` I have a question Keith Thompson @pulsar
1994-10-14 7:38 ` Henri Altarac [this message]
1994-10-14 21:25 ` Kevin Cline
1994-10-13 17:13 ` James A. Krzyzanowski
1994-10-13 15:29 ` David Emery
[not found] <1994Oct07.034523.161470@zeus.aix>
1994-10-14 11:16 ` emery
1994-10-14 16:46 ` spiegel
1994-10-15 16:52 ` ncohen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox