From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,447a948bb64464c3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-12 15:03:56 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!MathWorks.Com!news.kei.com!world!blanket.mitre.org!linus.mitre.org!linus!mbunix!emery From: emery@goldfinger.mitre.org (David Emery) Newsgroups: comp.lang.ada Subject: Re: I have a question... Date: 12 Oct 94 17:33:46 Organization: The Mitre Corp., Bedford, MA. Message-ID: References: <1994Oct07.034523.161470@zeus.aix.calpoly.edu> NNTP-Posting-Host: goldfinger.mitre.org In-reply-to: spiegel@bruessel.informatik.uni-stuttgart.de's message of Mon, 10 Oct 1994 10:57:16 GMT Date: 1994-10-12T17:33:46+00:00 List-Id: 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 -------------------------------------------------------------------------