From: Pádraig Brady Date: Thu, 1 Sep 2011 14:43:25 +0000 (+0100) Subject: tests: split/l-chunk: avoid a portability issue X-Git-Tag: v8.13~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37784220dd2a99201b532126f0b382206e860f07;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/tests/split/l-chunk b/tests/split/l-chunk index 7bf698989a..e1c9ec7d89 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