summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-11-22 22:06:06 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-11-22 22:06:06 -0500
commitd761a18c3b1a38390ae0c23fea203bd23f509d84 (patch)
treec70d3eaf799fe81ba8a5804b3efb6248d7db7e59 /tests.sh
parent13b8b78cf1082c14eb689edf64337a0af9cd0f7f (diff)
downloadbfs-d761a18c3b1a38390ae0c23fea203bd23f509d84.tar.xz
tests: Mkae LC_ALL=C apply to the whole pipeline when sorting.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index eb23d20..04d8a65 100755
--- a/tests.sh
+++ b/tests.sh
@@ -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() {