tests: fix quoting bug in misc/nohup

* tests/misc/nohup: Fix invalid quoting.
This commit is contained in:
Jim Meyering committed 2012-04-03 22:17:28 +02:00
1 parent 5e1f5c5739
commit 64cf1033cc
1 file changed
+2 -2
+2 -2
View File
@@ -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