From: emery@goldfinger.mitre.org (David Emery)
Subject: Re: I have a question...
Date: 12 Oct 94 17:33:46
Date: 1994-10-12T17:33:46+00:00 [thread overview]
Message-ID: <EMERY.94Oct12173346@goldfinger.mitre.org> (raw)
In-Reply-To: spiegel@bruessel.informatik.uni-stuttgart.de's message of Mon, 10 Oct 1994 10:57:16 GMT
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.
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.
dave
--
--The preceeding opinions do not necessarily reflect the opinions of
--The MITRE Corporation or its sponsors.
-- "A good plan violently executed -NOW- is better than a perfect plan
-- next week" George Patton
-- "Any damn fool can write a plan. It's the execution that gets you
-- all screwed up" James Hollingsworth
-------------------------------------------------------------------------
next parent reply other threads:[~1994-10-12 17:33 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 ` David Emery [this message]
1994-10-14 1:21 ` I have a question 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
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