Subject: bin/30430: ls(1) -L option does not work
To: None <,>
From: None <>
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
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
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.
$ ls -l /lib/
lrwxrwxrwx  1 root  wheel  14 Jun  5 06:55 /lib/ ->
$ ls -L /lib/

The following output or similar was expected:

$ ls -L /lib/