Force LC_ALL=C for clip sort

This commit is contained in:
Chris Down 2018-02-21 17:32:40 +00:00
parent a93cc27b65
commit 4347465b78

View file

@ -35,8 +35,8 @@ fi
# argument to override an earlier one. That is, if the user passes in `-l`, our
# one will be ignored.
chosen_line=$(
cat "$cache_file_prefix"_* /dev/null | sort -rnk 1 | cut -d' ' -f2- |
awk '!seen[$0]++' | "$CM_LAUNCHER" -l 8 "$@"
cat "$cache_file_prefix"_* /dev/null | LC_ALL=C sort -rnk 1 |
cut -d' ' -f2- | awk '!seen[$0]++' | "$CM_LAUNCHER" -l 8 "$@"
)
[[ $chosen_line ]] || exit 1