1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-12 15:06:44 +02:00

tests: fix quoting bug in misc/nohup

* tests/misc/nohup: Fix invalid quoting.
This commit is contained in:
Jim Meyering
2012-03-18 02:33:53 +01:00
parent 5e1f5c5739
commit 64cf1033cc

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