From 561dff8cb205e3344ffe16b0569b724fd6c6ad90 Mon Sep 17 00:00:00 2001 Message-Id: <561dff8cb205e3344ffe16b0569b724fd6c6ad90.1715697041.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 7 Oct 2012 03:27:53 +0100 Subject: [PATCH] hush.in: Don't trim leading space from lines. Organization: Straylight/Edgeware From: Mark Wooding --- hush.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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