From: Mark Wooding Date: Sun, 7 Oct 2012 02:27:53 +0000 (+0100) Subject: hush.in: Don't trim leading space from lines. X-Git-Tag: 1.2.8~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/misc/commitdiff_plain/561dff8cb205e3344ffe16b0569b724fd6c6ad90 hush.in: Don't trim leading space from lines. --- diff --git a/hush.in b/hush.in index 5e78234..4b3b751 100755 --- a/hush.in +++ b/hush.in @@ -147,8 +147,8 @@ EOF ## substitution. 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 | + 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