home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / programm / 4612 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!Slapshot.Stanford.EDU!schemers
  3. From: schemers@Slapshot.Stanford.EDU (Roland Schemers)
  4. Subject: Re: pathname "cleanup" routine
  5. Message-ID: <1992Sep10.150454.16102@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Distributed Computing Group, Stanford University
  8. References: <1992Sep10.043443.20693@leland.Stanford.EDU> <HURTTA.92Sep10142337@plootu.Helsinki.FI>
  9. Date: Thu, 10 Sep 92 15:04:54 GMT
  10. Lines: 20
  11.  
  12. In article <HURTTA.92Sep10142337@plootu.Helsinki.FI>, hurtta@cs.Helsinki.FI (Kari E. Hurtta) writes:
  13. |> In article <1992Sep10.043443.20693@leland.Stanford.EDU> schemers@leland.Stanford.EDU (Roland Schemers) wrote:
  14. |> 
  15. |> Warning:
  16. |> 
  17. |> if tmp is symbolic link, then
  18. |>     tmp/../foo    isn't same as    foo 
  19. |> 
  20. |> - K E H
  21.  
  22. Yup. Thats why I tempted to just expand ~ and environment variables, then
  23. do a chdir(path), followed by a getwd to get the cleaned up version. This
  24. is for a Motif directory browser anyways, so doing a chdir to the current
  25. directory your browsing is probably a good thing.
  26.  
  27. -- 
  28. Roland J. Schemers III              |            Networking Systems
  29. Systems Programmer                  |            168 Pine Hall   (415)-723-6740
  30. Distributed Computing Group         |            Stanford, CA 94305-4122
  31. Stanford University                 |            schemers@Slapshot.Stanford.EDU
  32.