tests: fix quoting bug in misc/nohup
authorJim Meyering <meyering@redhat.com>
Sun, 18 Mar 2012 01:33:53 +0000 (02:33 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 3 Apr 2012 20:17:28 +0000 (22:17 +0200)
* tests/misc/nohup: Fix invalid quoting.

tests/misc/nohup

index c6082ac..cef8ee8 100755 (executable)
@@ -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