X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a7f83bd88f78101d794f8d2a5933604ee71883f1..bea5b7b5b611f456f18c77e5e6d56bb65f9b0ef7:/test/pick/test-pick?ds=inline 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