home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 18099 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!olivea!charnel!sifon!CC.UMontreal.CA!gaumondp
  2. From: gaumondp@ERE.UMontreal.CA (Gaumond Pierre)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Bug in ls -L ?
  5. Message-ID: <1992Dec16.155405.8289@cc.umontreal.ca>
  6. Date: 16 Dec 92 15:54:05 GMT
  7. References: <1992Dec14.190234.25355@cc.umontreal.ca> <tkteeqg@zuni.esd.sgi.com>
  8. Sender: news@cc.umontreal.ca (Administration de Cnews)
  9. Organization: Universite de Montreal
  10. Lines: 36
  11.  
  12. In article <tkteeqg@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
  13. >In <1992Dec14.190234.25355@cc.umontreal.ca> gaumondp@ERE.UMontreal.CA (Gaumond Pierre) writes:
  14. >
  15. >| if I do (on csh):
  16. >| 
  17. >| % ls -l /usr/bin/vi
  18. >| l---------   1 root     sys            2 Mar 29  1992 /usr/bin/vi -> ex
  19. >| % ls -L /usr/bin/vi
  20. >| /usr/bin/vi
  21. >| 
  22. >| The man pages for ls say about "-L" parameter:
  23. >| 
  24. >|      -L   If the file is a symbolic link, list the file that the link
  25. >|           references.
  26. >| 
  27. >| I should have obtained "/usr/bin/ex" with the ls -L commabd. Is it a bug?
  28. >| Is there something I did not understand?
  29. >
  30. >The man page could be clearer.  It means follow the link, and get
  31. >the 'stat' info from the file that is pointed to by the link,
  32. >not to change the name that is printed.  See also 'man lstat'.
  33.  
  34. The idea behind my posting was to find a way to get the full path of the file
  35. pointed by the link in a script in a way as simple as possible.
  36.  
  37. >--
  38. >Let no one tell me that silence gives consent,  |   Dave Olson
  39. >because whoever is silent dissents.             |   Silicon Graphics, Inc.
  40. >    Maria Isabel Barreno                        |   olson@sgi.com
  41.  
  42.  
  43. -- 
  44. Pierre Gaumond.        gaumondp@ERE.UMontreal.CA
  45. Services Informatiques, Universite de Montreal. 
  46. C.P. 6128, Succursale "A", Montreal,            
  47. Quebec, Canada.   H3C 3J7                       
  48.