home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 18049 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!sgi!fido!zola!zuni!anchor!olson
  3. From: olson@anchor.esd.sgi.com (Dave Olson)
  4. Subject: Re: Bug in ls -L ?
  5. Message-ID: <tkteeqg@zuni.esd.sgi.com>
  6. Sender: news@zuni.esd.sgi.com (Net News)
  7. Organization:  Silicon Graphics, Inc.  Mountain View, CA
  8. References: <1992Dec14.190234.25355@cc.umontreal.ca>
  9. Date: Tue, 15 Dec 92 18:34:04 GMT
  10. Lines: 24
  11.  
  12. In <1992Dec14.190234.25355@cc.umontreal.ca> gaumondp@ERE.UMontreal.CA (Gaumond Pierre) writes:
  13.  
  14. | if I do (on csh):
  15. | % ls -l /usr/bin/vi
  16. | l---------   1 root     sys            2 Mar 29  1992 /usr/bin/vi -> ex
  17. | % ls -L /usr/bin/vi
  18. | /usr/bin/vi
  19. | The man pages for ls say about "-L" parameter:
  20. |      -L   If the file is a symbolic link, list the file that the link
  21. |           references.
  22. | I should have obtained "/usr/bin/ex" with the ls -L commabd. Is it a bug?
  23. | Is there something I did not understand?
  24.  
  25. The man page could be clearer.  It means follow the link, and get
  26. the 'stat' info from the file that is pointed to by the link,
  27. not to change the name that is printed.  See also 'man lstat'.
  28. --
  29. Let no one tell me that silence gives consent,  |   Dave Olson
  30. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  31.     Maria Isabel Barreno                        |   olson@sgi.com
  32.