From: Mark Wooding Date: Tue, 27 Dec 2011 17:51:28 +0000 (+0000) Subject: hush.in: Turn off buffering in the pipe-merging `cat'. X-Git-Tag: 1.2.7~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/misc/commitdiff_plain/1e22187d2132a741d5b85abf907fe6a33876632e hush.in: Turn off buffering in the pipe-merging `cat'. GNU cat never buffers anyway; BSD cat doesn't seem to unless you ask it to do something complicated. But it's good form. --- diff --git a/hush.in b/hush.in index 0ecc48e..5e78234 100755 --- a/hush.in +++ b/hush.in @@ -149,7 +149,7 @@ rc=$( { { { { set +e; $lbuf "$cmd" "$@"; echo $? >&5; } | while read line; do echo "| $line"; done >&4; } 2>&1 | while read line; do echo "* $line"; done >&4; } 4>&1 | - cat >&3; } 5>&1 &3; } 5>&1