odd ls sorting
"David Christopher Asher" <[email protected]> Mon, 15 Sep 2003 13:11:17 -0400
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <000901c37bac$6065c6e0$1e05000a@narco> |
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