summaryrefslogtreecommitdiff
path: root/tests/split/l-chunk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-09-01 15:43:25 +0100
committerPádraig Brady <P@draigBrady.com>2011-09-01 15:43:25 +0100
commit37784220dd2a99201b532126f0b382206e860f07 (patch)
treecb6414cfb88371a86a718aaceaee333f63908790 /tests/split/l-chunk
parent551cbda0278d7e88c7ba52be0510f42ad2466e48 (diff)
downloadcoreutils-37784220dd2a99201b532126f0b382206e860f07.tar.xz
tests: split/l-chunk: avoid a portability issue
* tests/split/l-chunk: Don't use the `test "$var"` idiom to test that var is set to something as that's not supported by all shells. The new style matches the usage is the rest of the test in any case. Reported by Bruno Haible on AIX 6.1 and 7.1
Diffstat (limited to 'tests/split/l-chunk')
-rwxr-xr-xtests/split/l-chunk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/split/l-chunk b/tests/split/l-chunk
index 7bf698989..e1c9ec7d8 100755
--- a/tests/split/l-chunk
+++ b/tests/split/l-chunk
@@ -108,7 +108,7 @@ for ELIDE_EMPTY in '' '-e'; do
echo "$lines"
fi
done
- test "$ELIDE_EMPTY" && EXP=exp.elide_empty || EXP=exp
+ test -z "$ELIDE_EMPTY" && EXP=exp || EXP=exp.elide_empty
compare out $EXP || fail=1
done
done