]> diplodocus.org Git - nmh/commitdiff
it looks like the write to /dev/tty is causing the warning from
authorDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 02:04:50 +0000 (20:04 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 02:04:50 +0000 (20:04 -0600)
test-pick on Solaris, here's an attempt to squelch that.

test/pick/test-pick

index 3fff777545e0a2d444c51c1a127ad2596614a9db..eb8d98844569733d2148d0149bdf70148f7576a0 100755 (executable)
@@ -99,8 +99,8 @@ cat >"$expected" <<EOF
 EOF
 check "$expected" "$actual"
 
-if test -w /dev/tty 2>/dev/null; then
-  if printf '' >/dev/tty; then
+if test -w /dev/tty; then
+  if (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