Dear all,

The command "ls -t" fails to sort files as promised, when the total length of the names of the files to be listed (and sorted) exceeds 128 KB. All files are still listed, just the sorting part stops working.

Man page does not mention that the sorting would work only with short file lists. Is this a bug? If not, what have I understood wrong?

The attached script demonstrates this, in three slightly different scenarios. The outcome of the script is that the total lenght of filenames, given to ls as command line parameter, appears significant.

Regards,


        Teppo Mäenpää

Attachment: bug_ls_-t.tar.gz
Description: application/gzip

Reply via email to