summaryrefslogtreecommitdiff
path: root/tests/misc/sort-rand
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/sort-rand')
-rwxr-xr-xtests/misc/sort-rand2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/sort-rand b/tests/misc/sort-rand
index c9fce0aa7..79730e957 100755
--- a/tests/misc/sort-rand
+++ b/tests/misc/sort-rand
@@ -35,7 +35,7 @@ compare in out1 || { fail=1; echo "not a permutation" 1>&2; }
# If locale is available then use it to find a random non-C locale.
if (locale --version) > /dev/null 2>&1; then
- locale=`locale -a | sort --random-sort | awk '/^.._/{print;exit}'`
+ locale=$(locale -a | sort --random-sort | awk '/^.._/{print;exit}')
LC_ALL=$locale sort --random-sort in > out1 || fail=1
LC_ALL=$locale sort --random-sort in > out2 || fail=1