mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: fix quoting bug in misc/nohup
* tests/misc/nohup: Fix invalid quoting.
This commit is contained in:
1 parent
5e1f5c5739
commit
64cf1033cc
1 file changed
+2
-2
+2
-2
@@ -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