summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-02-19 22:11:18 +0100
committerJim Meyering <jim@meyering.net>2007-02-19 22:11:18 +0100
commitc363fcb9f06cec38040cf4294521096aa70179d9 (patch)
treebce2a2960c9016ec2979efad9a1572c1f9471d83 /tests/misc
parente189deb855253b184b64fc1e532c2f00f438ae64 (diff)
downloadcoreutils-c363fcb9f06cec38040cf4294521096aa70179d9.tar.xz
* NEWS: sort now uses a --compress-program option rather than
an environment variable. * doc/coreutils.texi (sort invocation): Document this. * src/sort.c (usage): Likewise. (COMPRESS_PROGRAM_OPTION): New const. (long_options, create_temp, main): Support new option. * tests/misc/sort-compress: Test it.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/sort-compress6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc/sort-compress b/tests/misc/sort-compress
index af961d202..b0f4dd703 100755
--- a/tests/misc/sort-compress
+++ b/tests/misc/sort-compress
@@ -64,21 +64,21 @@ test -f ok || fail=1
rm -f ok
# This is to make sure we can disable compression
-PATH=.:$PATH GNUSORT_COMPRESSOR= sort -S 1k in > out || fail=1
+PATH=.:$PATH sort --compress-program= -S 1k in > out || fail=1
cmp exp out || fail=1
test $fail = 1 && diff out exp 2> /dev/null
test -f ok && fail=1
# This is to make sure we can use something other than gzip
mv gzip dzip || fail=1
-GNUSORT_COMPRESSOR=./dzip sort -S 1k in > out || fail=1
+sort --compress-program=./dzip -S 1k in > out || fail=1
cmp exp out || fail=1
test $fail = 1 && diff out exp 2> /dev/null
test -f ok || fail=1
rm -f ok
# Make sure it can find other programs in PATH correctly
-PATH=.:$PATH GNUSORT_COMPRESSOR=dzip sort -S 1k in > out || fail=1
+PATH=.:$PATH sort --compress-program=dzip -S 1k in > out || fail=1
cmp exp out || fail=1
test $fail = 1 && diff out exp 2> /dev/null
test -f ok || fail=1