X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/misc/blobdiff_plain/18873429d00326a8dce8497664aa5877a51af156..6256f003fb96ca41218641372a247b56b51ddb5a:/hush.in diff --git a/hush.in b/hush.in index 4b3b751..4359527 100755 --- a/hush.in +++ b/hush.in @@ -146,7 +146,7 @@ EOF ## we write that to another pipe (fd 5) and pick it out using command ## substitution. rc=$( - { { { { set +e; $lbuf "$cmd" "$@"; echo $? >&5; } | + { { { { set +e; $lbuf "$cmd" "$@" 3>&- 4>&- 5>&-; echo $? >&5; } | while IFS= read line; do echo "| $line"; done >&4; } 2>&1 | while IFS= read line; do echo "* $line"; done >&4; } 4>&1 | cat -u >&3; } 5>&1