Re: ls -L [some symbolic linked file] not working
Re: ls -L [some symbolic linked file] not working
- Subject: Re: ls -L [some symbolic linked file] not working
- From: "Justin C. Walker" <email@hidden>
- Date: Tue, 19 Sep 2006 19:24:48 -0700
On Sep 19, 2006, at 19:12 , Steve Checkoway wrote:
On Sep 19, 2006, at 7:05 PM, Justin C. Walker wrote:
It's not a bug; it is the way links work. A link between files
lets you reference the second (linked-to) file by the name of the
first (linked from) file.
I think the issue is that this behavior seems to contradict what
the man page says:
-L If argument is a symbolic link, list the file or
directory the
link references rather than the link itself. This
option cancels
the -P option.
I think if you read that correctly (i.e., the way I do :-}), it says
that instead of seeing the *file information* for the symlink, as in
$ ls -l foop
lrwxr-xr-x 1 justin wheel 9 Sep 19 18:59 foop -> /tmp/goop
you see the *file information* for the linked-to file, as in
$ ls -lL foop
-rw-r--r-- 1 justin wheel 7 Sep 19 18:59 foop
The file information in Unix file systems is divorced from the file
name.
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden