NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/58740: ls: flag -O incorrectly described in MAN and buggy
>Number: 58740
>Category: bin
>Synopsis: ls: flag -O incorrectly described in MAN and buggy
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 11 11:05:01 +0000 2024
>Originator: LARONDE Thierry
>Release: current
>Organization:
>Environment:
NetBSD cauchy.polynum.local 10.99.12 NetBSD 10.99.12 (CAUCHY) #2: Thu Sep 26 16:02:35 CEST 2024 tlaronde@cauchy.polynum.local:/data/m/netbsd-10.99/sys/arch/amd64/compile/CAUCHY amd64
>Description:
ls(1) has a non POSIX flag 'O' that is described as displaying only "leaf" files (files, not directory).
This is not what it does: it only suppresses the display of the newline, dir and trailing ':' when going recursive.
Furthermore---this was found by Valery Ushakov---the implementation is buggy:
$ mkdir -p 1/2/3/4
$ touch 1/2/200
$ find .
Home |
Main Index |
Thread Index |
Old Index