[Bug 1935] New: ls -l with wildcards produces incorrect output
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Sat Sep 10 23:28:28 EST 2011
https://bugzilla.mindrot.org/show_bug.cgi?id=1935
Bug #: 1935
Summary: ls -l with wildcards produces incorrect output
Classification: Unclassified
Product: Portable OpenSSH
Version: 5.8p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sftp
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: jma at freedomcircle.com
This is probably best demonstrated with some sample output. Issuing
the command:
sftp> ls -l localhost.access.log.?.gz
gives the following (abbreviated) output:
29787 Aug 31 02:24 localhost.access.log.2.gz
43664 Sep 1 02:23 localhost.access.log.3.gz
37122 Aug 29 02:23 localhost.access.log.4.gz
31291 Aug 26 02:24 localhost.access.log.5.gz
33117 Aug 27 02:22 localhost.access.log.6.gz
30870 Aug 30 02:24 localhost.access.log.7.gz
26787 Sep 2 02:23 localhost.access.log.8.gz
38128 Aug 28 02:24 localhost.access.log.9.gz
whereas ls -l reports the following (correct) data:
26787 Sep 2 06:23 localhost.access.log.2.gz
43664 Sep 1 06:23 localhost.access.log.3.gz
29787 Aug 31 06:24 localhost.access.log.4.gz
30870 Aug 30 06:24 localhost.access.log.5.gz
37122 Aug 29 06:23 localhost.access.log.6.gz
38128 Aug 28 06:24 localhost.access.log.7.gz
33117 Aug 27 06:22 localhost.access.log.8.gz
31291 Aug 26 06:24 localhost.access.log.9.gz
So it seems that the wildcard is munging the file size and timestamp in
some random manner. The bad output also happens with an asterisk
instead of a question mark.
Client is 5.8p1 on Debian-7 x86. Server is 5.5p1 on Debian-6 amd64.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list