bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

odd ls sorting


From: David Christopher Asher
Subject: odd ls sorting
Date: Mon, 15 Sep 2003 13:11:17 -0400

Hello,  I have 4 files:

land_shallow_topo_-90_-50.tfw
land_shallow_topo_-90_-50.tif
land_shallow_topo_-90_50.tfw
land_shallow_topo_-90_50.tif

I type 'ls' to retrieve the directory listing.  Under Red Hat Linux release
7.2 (Enigma) and 8.0 (Psyche), I get the following:

land_shallow_topo_-90_-50.tfw
land_shallow_topo_-90_50.tfw
land_shallow_topo_-90_-50.tif
land_shallow_topo_-90_50.tif

Under Red Hat Linux release 7.0 (Guinness), I get this:

land_shallow_topo_-90_-50.tfw
land_shallow_topo_-90_-50.tif
land_shallow_topo_-90_50.tfw
land_shallow_topo_-90_50.tif

Actually, I have more than 4 files, and it sorts like this under 7.2
(Enigma):

land_shallow_topo_-90_-40.tfw
land_shallow_topo_-90_40.tfw
land_shallow_topo_-90_-40.tif
land_shallow_topo_-90_40.tif
land_shallow_topo_-90_-50.tfw
land_shallow_topo_-90_50.tfw
land_shallow_topo_-90_-50.tif
land_shallow_topo_-90_50.tif
land_shallow_topo_-90_-60.tfw
land_shallow_topo_-90_60.tfw
land_shallow_topo_-90_-60.tif
land_shallow_topo_-90_60.tif

It's not ordered by extension, or strictly by filename.  It seems some odd
combination where it ignores the hyphen.  Any clue?

--
David Christopher Asher





reply via email to

[Prev in Thread] Current Thread [Next in Thread]