mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +02:00
tests: fix quoting bug in misc/nohup
* tests/misc/nohup: Fix invalid quoting.
This commit is contained in:
@@ -50,9 +50,9 @@ rm -f nohup.out err exp
|
|||||||
# change depending on whether stderr is redirected.
|
# change depending on whether stderr is redirected.
|
||||||
nohup sh -c 'echo stdout; echo stderr 1>&2' >out || fail=1
|
nohup sh -c 'echo stdout; echo stderr 1>&2' >out || fail=1
|
||||||
if test -t 2; then
|
if test -t 2; then
|
||||||
test "'cat out|tr '\n' -`" = stdout-stderr- || fail=1
|
test "$(cat out|tr '\n' -)" = stdout-stderr- || fail=1
|
||||||
else
|
else
|
||||||
test "'cat out|tr '\n' -`" = stdout- || fail=1
|
test "$(cat out|tr '\n' -)" = stdout- || fail=1
|
||||||
fi
|
fi
|
||||||
# It must *not* exist.
|
# It must *not* exist.
|
||||||
test -f nohup.out && fail=1
|
test -f nohup.out && fail=1
|
||||||
|
|||||||
Reference in New Issue
Block a user