Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls -L [some symbolic linked file] not working




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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >ls -L [some symbolic linked file] not working (From: David Hoerl <email@hidden>)
 >Re: ls -L [some symbolic linked file] not working (From: "Justin C. Walker" <email@hidden>)
 >Re: ls -L [some symbolic linked file] not working (From: Steve Checkoway <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.