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