From: Jim Meyering Date: Sun, 18 Mar 2012 01:33:53 +0000 (+0100) Subject: tests: fix quoting bug in misc/nohup X-Git-Tag: v8.17~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64cf1033cc47fe40bcebbecd069db486794fecea;p=thirdparty%2Fcoreutils.git tests: fix quoting bug in misc/nohup * tests/misc/nohup: Fix invalid quoting. --- diff --git a/tests/misc/nohup b/tests/misc/nohup index c6082aca58..cef8ee8fcf 100755 --- a/tests/misc/nohup +++ b/tests/misc/nohup @@ -50,9 +50,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