Leading spaces are common, actually
Posted Mar 26, 2009 19:21 UTC (Thu) by njs
In reply to: Leading spaces are common, actually
Parent article: Wheeler: Fixing Unix/Linux/POSIX Filenames
There is a use for leading spaces: They force files to appear earlier than usual in a lexicographic sort.
Are you sure? I've seen this in real-world uses too, but I thought that all the common systems were fixed to do human-style (non-ASCIIbetical) sorting a few years ago. I don't have any proprietary systems around to test, but I'll be *really* amused if the OS X Finder is missing this usability feature of GNU ls:
~/t$ touch "a" " b" "c"
~/t$ ls -l
-rw-r--r-- 1 njs njs 0 2009-03-26 12:16 a
-rw-r--r-- 1 njs njs 0 2009-03-26 12:16 b
-rw-r--r-- 1 njs njs 0 2009-03-26 12:16 c
to post comments)