[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sort differently on mac with some LC_ALL
From: |
Peng Yu |
Subject: |
Sort differently on mac with some LC_ALL |
Date: |
Sat, 10 Dec 2016 23:13:55 -0600 |
On mac, all the following LC_ALL result in the same results of sort.
LC_ALL=en_US.UTF-8 sort <<< $'a\nb\nA\nB'
A
B
a
b
LC_ALL=en_US sort <<< $'a\nb\nA\nB'
A
B
a
b
LC_ALL=C sort <<< $'a\nb\nA\nB'
A
B
a
b
But they are not all the same on linux. Do anybody know a LC_ALL on
mac that would make sort sort differently? Thanks.
LC_ALL=en_US.UTF-8 sort <<< $'a\nb\nA\nB'
a
A
b
B
LC_ALL=en_US sort <<< $'a\nb\nA\nB'
A
B
a
b
LC_ALL=C sort <<< $'a\nb\nA\nB'
A
B
a
b
--
Regards,
Peng
- Sort differently on mac with some LC_ALL,
Peng Yu <=