home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!Slapshot.Stanford.EDU!schemers
- From: schemers@Slapshot.Stanford.EDU (Roland Schemers)
- Subject: Re: pathname "cleanup" routine
- Message-ID: <1992Sep10.150454.16102@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Distributed Computing Group, Stanford University
- References: <1992Sep10.043443.20693@leland.Stanford.EDU> <HURTTA.92Sep10142337@plootu.Helsinki.FI>
- Date: Thu, 10 Sep 92 15:04:54 GMT
- Lines: 20
-
- In article <HURTTA.92Sep10142337@plootu.Helsinki.FI>, hurtta@cs.Helsinki.FI (Kari E. Hurtta) writes:
- |> In article <1992Sep10.043443.20693@leland.Stanford.EDU> schemers@leland.Stanford.EDU (Roland Schemers) wrote:
- |>
- |> Warning:
- |>
- |> if tmp is symbolic link, then
- |> tmp/../foo isn't same as foo
- |>
- |> - K E H
-
- Yup. Thats why I tempted to just expand ~ and environment variables, then
- do a chdir(path), followed by a getwd to get the cleaned up version. This
- is for a Motif directory browser anyways, so doing a chdir to the current
- directory your browsing is probably a good thing.
-
- --
- Roland J. Schemers III | Networking Systems
- Systems Programmer | 168 Pine Hall (415)-723-6740
- Distributed Computing Group | Stanford, CA 94305-4122
- Stanford University | schemers@Slapshot.Stanford.EDU
-