diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-11-22 22:06:06 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-11-22 22:06:06 -0500 |
commit | d761a18c3b1a38390ae0c23fea203bd23f509d84 (patch) | |
tree | c70d3eaf799fe81ba8a5804b3efb6248d7db7e59 /tests.sh | |
parent | 13b8b78cf1082c14eb689edf64337a0af9cd0f7f (diff) | |
download | bfs-d761a18c3b1a38390ae0c23fea203bd23f509d84.tar.xz |
tests: Mkae LC_ALL=C apply to the whole pipeline when sorting.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -96,7 +96,10 @@ if [ "$1" == "update" ]; then fi function bfs_sort() { - LC_ALL=C awk -F/ '{ print NF - 1 " " $0 }' | sort -n | awk '{ print $2 }' + ( + export LC_ALL=C + awk -F/ '{ print NF - 1 " " $0 }' | sort -n | awk '{ print $2 }' + ) } function bfs_diff() { |