From 8ce3cc2142316541568be80a85cacd7f5b95208f Mon Sep 17 00:00:00 2001 From: David Levine Date: Fri, 1 Feb 2013 22:25:51 -0600 Subject: [PATCH] Use test -t 1 instead of test -w in test-pick. --- test/pick/test-pick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.56.0