[Bug 2959] New: busybox ls does not consider an order of mutually exclusive options
bugzilla at busybox.net
bugzilla at busybox.net
Tue Dec 14 02:16:04 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=2959
Summary: busybox ls does not consider an order of mutually
exclusive options
Product: Busybox
Version: 1.17.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Standard Compliance
AssignedTo: unassigned at busybox.net
ReportedBy: kimyunho at kaist.ac.kr
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
According to IEEE Std 1003.1 ls section,
-------------------
Specifying more than one of the options in the following mutually-exclusive
pairs shall not be considered an error: -C and -l (ell), [XSI] -m and -l
(ell), -x and -l (ell), -C and -1 (one), -H and -L, -c and -u. The last option
specified in each pair shall determine the output format.
-------------------
However, through concolic testing, we found that busybox ls does not follow
this standard and ignores the order of mutually exclusive options. For example,
// Standard Linux ls
[moonzoo at verifier ls-bug]$ ls -C1
a.txt
b.txt
[moonzoo at verifier ls-bug]$ ls -1C
a.txt b.txt
// Busybox ls
[moonzoo at verifier ls-bug]$ ../busybox-1.17.0/busybox ls -C1
a.txt
b.txt
[moonzoo at verifier ls-bug]$ ../busybox-1.17.0/busybox ls -1C
a.txt
b.txt
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list