From d761a18c3b1a38390ae0c23fea203bd23f509d84 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 22 Nov 2016 22:06:06 -0500 Subject: tests: Mkae LC_ALL=C apply to the whole pipeline when sorting. --- tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests.sh') 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() { -- cgit v1.2.3