summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-05-16 07:46:51 +0200
committerJim Meyering <meyering@redhat.com>2012-05-16 07:46:51 +0200
commit2e9f5ca4ebbbdb6a9fa2dd3d5add3f7720a172d7 (patch)
tree4bdf4535a03721e44879c56b318e1a6998fc301e /tests/misc
parente2bd5cda0a341b35c79ba1484bd71e932c74b456 (diff)
downloadcoreutils-2e9f5ca4ebbbdb6a9fa2dd3d5add3f7720a172d7.tar.xz
tests: use $AWK, not awk
* tests/cp/sparse-fiemap: Don't hard-code "awk". Use $AWK. * tests/init.cfg: Likewise. * tests/misc/sort-rand: Likewise.
Diffstat (limited to 'tests/misc')
-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 79730e957..1782a9acc 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