Re: ls -L [some symbolic linked file] not working
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Here is what I did to test this: $ cd /tmp $ cat > goop hello world $ ln -s /tmp/goop /tmp/foop $ file foop foop: symbolic link to `/tmp/goop' $ ls -L foop foop $ ls -L goop goop I think that this is the way it's meant to work: $ ls -l gah lrwxr-xr-x 1 peter peter 2 Sep 20 07:27 gah -> hw $ ls -Lld gah drwxr-xr-x 12 peter peter 408 Sep 19 12:35 gah -- Gwynne, daughter of the Code "This whole world is an asylum for the incurable." _______________________________________________ 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... On Sep 19, 2006, at 6:32 PM, Peter O'Gorman wrote: I recently had cause to try and use "ls -L file" to find the linked file. Its not working (I wanted to use the return string in a shell program). Is this a known problem (ie should I create a bug report on it)? I ran into this exact issue a few days ago. My solution was to use the "readlink" utility on the link. I'm not sure if this is bash- specific or not. This email sent to site_archiver@lists.apple.com
participants (1)
-
Gwynne