home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 18098 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.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.160333.8473@cc.umontreal.ca>
  6. Date: 16 Dec 92 16:03:33 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: 69
  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. >Let no one tell me that silence gives consent,  |   Dave Olson
  35. >because whoever is silent dissents.             |   Silicon Graphics, Inc.
  36. >    Maria Isabel Barreno                        |   olson@sgi.com
  37.  
  38.  
  39. Newsgroups: comp.sys.sgi
  40. Subject: Re: Bug in ls -L ?
  41. Summary: 
  42. Expires: 
  43. References: <1992Dec14.190234.25355@cc.umontreal.ca> <tkteeqg@zuni.esd.sgi.com>
  44. Sender: 
  45. Followup-To: 
  46. Distribution: 
  47. Organization: Universite de Montreal
  48. Keywords: 
  49.  
  50. In article <tkteeqg@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
  51. >In <1992Dec14.190234.25355@cc.umontreal.ca> gaumondp@ERE.UMontreal.CA (Gaumond Pierre) writes:
  52. >
  53. >| if I do (on csh):
  54. >| 
  55. >| % ls -l /usr/bin/vi
  56. >| l---------   1 root     sys            2 Mar 29  1992 /usr/bin/vi -> ex
  57. >| % ls -L /usr/bin/vi
  58. >| /usr/bin/vi
  59. >| 
  60. >| The man pages for ls say about "-L" parameter:
  61. >| 
  62. >|      -L   If the file is a symbolic link, list the file that the link
  63. >|           references.
  64. >| 
  65. >| I should have obtained "/usr/bin/ex" with the ls -L commabd. Is it a bug?
  66. >| Is there something I did not understand?
  67. >
  68. >The man page could be clearer.  It means follow the link, and get
  69. >the 'stat' info from the file that is pointed to by the link,
  70. >not to change the name that is printed.  See also 'man lstat'.
  71.  
  72. The idea behind my posting was to find a way to get the full path of the file
  73. pointed by the link in a script in a way as simple as possible.
  74.  
  75.  
  76. -- 
  77. Pierre Gaumond.        gaumondp@ERE.UMontreal.CA
  78. Services Informatiques, Universite de Montreal. 
  79. C.P. 6128, Succursale "A", Montreal,            
  80. Quebec, Canada.   H3C 3J7                       
  81.