Subject: bin/30430: ls(1) -L option does not work
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <ndehne@gmail.com>
List: netbsd-bugs
Date: 06/05/2005 05:39:00
>Number:         30430
>Category:       bin
>Synopsis:       ls(1) -L option does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 05 05:39:00 +0000 2005
>Originator:     Nino Dehne
>Release:        3.0_BETA
>Organization:
>Environment:
NetBSD [...] 3.0_BETA NetBSD 3.0_BETA (WRAP) #0: Sat Jun  4 12:13:20 CEST 2005  [...]:/usr/home/build/wrap/obj/usr/home/build/wrap/src/sys/arch/i386/compile/WRAP i386
>Description:
The ls(1) man page says: -L      If argument is a symbolic link, list the file or directory the link references rather than the link itself.

In reality, the -L option does not work like documented and how one would expect.
>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

>Fix:
Unknown.