Re: ls -L [some symbolic linked file] not working
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Sep 19, 2006, at 19:12 , Steve Checkoway wrote: On Sep 19, 2006, at 7:05 PM, Justin C. Walker wrote: $ 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 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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 The file information in Unix file systems is divorced from the file name. This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin C. Walker