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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user