2 ms·
Yes, slash sorts before double-quote in this locale: $ (echo '"'; echo '/') | LC_ALL=en_US.UTF-8 sort / "
by jwilk 8y ago
Yes, slash sorts before double-quote in this locale:
$ (echo '"'; echo '/') | LC_ALL=en_US.UTF-8 sort
/
"
- a1369209993 8y agoEdit: nevermind, I apparently rm'd the offending locale directory last time I encountered a bug like this and sort is silently ignoring LC_ALL: bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory I can't reproduce this bug: $ (echo '"'; echo '/') | LC_ALL=en_US.UTF-8 sort " / $ sort --version sort (GNU coreutils) 8.26 What version are you using?