From: David Levine Date: Sat, 2 Feb 2013 04:25:51 +0000 (-0600) Subject: Use test -t 1 instead of test -w in test-pick. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8ce3cc2142316541568be80a85cacd7f5b95208f Use test -t 1 instead of test -w in test-pick. --- diff --git a/test/pick/test-pick b/test/pick/test-pick index 07eff1ff..e1434dce 100755 --- a/test/pick/test-pick +++ b/test/pick/test-pick @@ -99,7 +99,7 @@ cat >"$expected" </dev/tty) 2>/dev/null; then +if test -t 1 && (printf '' >/dev/tty) 2>/dev/null; then # Produce no standard output if no messages match and standard # output is a tty. To test that even when run with stdout # detached, write directly to /dev/tty. Can't capture the