[email protected] wrote:
[a...@eris ls]$ echo $LC_COLLATE
en_US.UTF-8
[a...@eris ls]$ ls
a0b a4b a8b a`b a=b a_b a:b a'b a[b a...@b a&b alb apb azb
a1b a5b a9b a^b a>b a-b a!b a"b a]b a$b a#b aLb aPb aZb
a2b a6b aab a~b a|b a,b a?b a(b a{b a*b a%b amb aqb
a3b a7b aAb a<b a b a;b a.b a)b a}b a\b a+b aMb aQb
[a...@eris ls]$
Each of these is a file with a three-character name, first character 'a',
third character 'b'. Why aren't these sorted in strict ASCII order, or even
case-insensitive ASCII order?
To elucidate, try:
[a...@eris ls]$ /bin/ls | od -txz -w4
-jesse
Thanks, Jesse, but I'm still confused. Here's an excerpt from the
output of that command:
0000044 0a623961 >a9b.<
0000050 0a626161 >aab.<
0000054 0a624161 >aAb.<
0000060 0a626061 >a`b.<
0000064 0a625e61 >a^b.<
0000070 0a627e61 >a~b.<
0000074 0a623c61 >a<b.<
The third character of each line of the hex output seems to keep jumping
up and down: 39, 61 41 (okay, both of those are the same letter), 60,
5e, 7e, 3c. I don't understand why it's like that, instead of steadily
increasing (even if it were case-insensitive).
Adam
_______________________________________________
Mid-Hudson Valley Linux Users Group http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) MHVLS Auditorium
Mar 7 - Web Hack-a-thon - SUNY Newpaltz
Apr 1 - EC2 and Cloud Computer
May 6 - TBD