applet 'ls' - wrong sort by 'time' when using wildcards/globbing

Loïc Grenié loic.grenie at gmail.com
Thu Jan 30 08:43:40 UTC 2014


2014-01-30 Bastian Bittorf <bittorf at bluebottle.com>:
> unsure if this is normal, but today i stumbled over this:
>
> root at box:~ ls -lt /dev/dsp*
> crw-r--r--    1 root     root       14,   3 Jan 30 08:44 /dev/dsp
> crw-r--r--    1 root     root       14,  19 Jan 30 08:44 /dev/dsp1
>
> the exspected result was to get the 'newest' link on top.
> normal sorting by time works:

     I think you misread the time: date is Jan 30th for both, time is 8:44
  for both so there is no obvious order. What is before "Jan" is the minor
  number of the device.

        Hope this helps,

             Loïc


More information about the busybox mailing list