home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!olivea!charnel!sifon!CC.UMontreal.CA!gaumondp
- From: gaumondp@ERE.UMontreal.CA (Gaumond Pierre)
- Newsgroups: comp.sys.sgi
- Subject: Re: Bug in ls -L ?
- Message-ID: <1992Dec16.160333.8473@cc.umontreal.ca>
- Date: 16 Dec 92 16:03:33 GMT
- References: <1992Dec14.190234.25355@cc.umontreal.ca> <tkteeqg@zuni.esd.sgi.com>
- Sender: news@cc.umontreal.ca (Administration de Cnews)
- Organization: Universite de Montreal
- Lines: 69
-
- In article <tkteeqg@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
- >In <1992Dec14.190234.25355@cc.umontreal.ca> gaumondp@ERE.UMontreal.CA (Gaumond Pierre) writes:
- >
- >| if I do (on csh):
- >|
- >| % ls -l /usr/bin/vi
- >| l--------- 1 root sys 2 Mar 29 1992 /usr/bin/vi -> ex
- >| % ls -L /usr/bin/vi
- >| /usr/bin/vi
- >|
- >| The man pages for ls say about "-L" parameter:
- >|
- >| -L If the file is a symbolic link, list the file that the link
- >| references.
- >|
- >| I should have obtained "/usr/bin/ex" with the ls -L commabd. Is it a bug?
- >| Is there something I did not understand?
- >
- >The man page could be clearer. It means follow the link, and get
- >the 'stat' info from the file that is pointed to by the link,
- >not to change the name that is printed. See also 'man lstat'.
- >--
- >Let no one tell me that silence gives consent, | Dave Olson
- >because whoever is silent dissents. | Silicon Graphics, Inc.
- > Maria Isabel Barreno | olson@sgi.com
-
-
- Newsgroups: comp.sys.sgi
- Subject: Re: Bug in ls -L ?
- Summary:
- Expires:
- References: <1992Dec14.190234.25355@cc.umontreal.ca> <tkteeqg@zuni.esd.sgi.com>
- Sender:
- Followup-To:
- Distribution:
- Organization: Universite de Montreal
- Keywords:
-
- In article <tkteeqg@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
- >In <1992Dec14.190234.25355@cc.umontreal.ca> gaumondp@ERE.UMontreal.CA (Gaumond Pierre) writes:
- >
- >| if I do (on csh):
- >|
- >| % ls -l /usr/bin/vi
- >| l--------- 1 root sys 2 Mar 29 1992 /usr/bin/vi -> ex
- >| % ls -L /usr/bin/vi
- >| /usr/bin/vi
- >|
- >| The man pages for ls say about "-L" parameter:
- >|
- >| -L If the file is a symbolic link, list the file that the link
- >| references.
- >|
- >| I should have obtained "/usr/bin/ex" with the ls -L commabd. Is it a bug?
- >| Is there something I did not understand?
- >
- >The man page could be clearer. It means follow the link, and get
- >the 'stat' info from the file that is pointed to by the link,
- >not to change the name that is printed. See also 'man lstat'.
-
- The idea behind my posting was to find a way to get the full path of the file
- pointed by the link in a script in a way as simple as possible.
-
-
- --
- Pierre Gaumond. gaumondp@ERE.UMontreal.CA
- Services Informatiques, Universite de Montreal.
- C.P. 6128, Succursale "A", Montreal,
- Quebec, Canada. H3C 3J7
-