From: Jim Meyering Date: Fri, 19 Dec 2003 16:13:28 +0000 (+0000) Subject: Double quote back-ticked expression, X-Git-Tag: v5.1.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4206c91483145c7986e5eec24376c5c3c680ec;p=thirdparty%2Fcoreutils.git Double quote back-ticked expression, in case it ends up having an unexpected value. --- diff --git a/tests/misc/nohup b/tests/misc/nohup index 36a965556f..2205451891 100755 --- a/tests/misc/nohup +++ b/tests/misc/nohup @@ -52,9 +52,9 @@ rm -f nohup.out err exp # change depending on whether stderr is redirected. nohup sh -c 'echo stdout; echo stderr 1>&2' >out || fail=1 if test -t 2; then - test `cat out|tr '\n' -` = stdout-stderr- || fail=1 + test "`cat out|tr '\n' -`" = stdout-stderr- || fail=1 else - test `cat out|tr '\n' -` = stdout- || fail=1 + test "`cat out|tr '\n' -`" = stdout- || fail=1 fi # It must *not* exist. test -f nohup.out && fail=1