Subject: Re: bin/30430: ls(1) -L option does not work
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Rhialto <rhialto@azenomei.knuffel.net>
List: netbsd-bugs
Date: 06/07/2005 11:05:03
The following reply was made to PR bin/30430; it has been noted by GNATS.

From: Rhialto <rhialto@azenomei.knuffel.net>
To: gnats-bugs@NetBSD.org, ndehne@gmail.com
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: bin/30430: ls(1) -L option does not work
Date: Tue, 7 Jun 2005 13:03:58 +0200

 On Sun 05 Jun 2005 at 05:39:00 +0000, ndehne@gmail.com wrote:
 > >How-To-Repeat:
 > $ ls -l /lib/libc.so
 > lrwxrwxrwx  1 root  wheel  14 Jun  5 06:55 /lib/libc.so -> libc.so.12.127
 > $ ls -L /lib/libc.so
 > /lib/libc.so
 > 
 > The following output or similar was expected:
 > 
 > $ ls -L /lib/libc.so
 > libc.so.12.127
 
 The -L option indeed does list the file that the link refers to (but not
 its name!), except without -l you don't see it. Example on my system:
 
 $ ls -l /lib/libc.so
 lrwxr-xr-x  1 root  wheel  16 Nov 30  2004 /lib/libc.so@ -> libc.so.12.114.1
 $ ls -lL /lib/libc.so
 -r--r--r--  1 root  wheel  1120527 Nov 30  2004 /lib/libc.so
 
 The functionality you expect is available from the readlink(1) command:
 
 $ readlink /lib/libc.so
 libc.so.12.114.1
 
 -Olaf.
 -- 
 ___ Olaf 'Rhialto' Seibert                            --  rhialto/at/falu.nl
 \X/ Hi! I'm a signature virus! Copy me to your .signature to help me spread!