From 37784220dd2a99201b532126f0b382206e860f07 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 1 Sep 2011 15:43:25 +0100 Subject: 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 --- tests/split/l-chunk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2