« As seen in hell.... | Newest entries | Math is hard (even for google)! » Turns out that when you don't LC_COLLATE=C; export LC_COLLATE, you'll eventually get bitten in the ass by the way character ranges in shell globs are treated: In this case, my friend discovered the interesting behavior after executing 'rm [a-z]*', apparently hoping to keep files which started with uppercase letters. Whoops!$ (unset LC_COLLATE; bash) $ touch A a B b Z z; echo [A-Z]; echo [a-z] A b B z Z a A b B z Entry first conceived on 28 December 2007, 21:24 UTC, last modified on 28 December 2007, 21:30 UTC |
| [æ] |