From d73cdbf84c9c7d509baf69eb3256dcaf733f4d93 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 23 Jul 2018 15:43:57 +0200 Subject: hush: fix handling of heredocs starting with empty lines function old new delta parse_stream 2748 2759 +11 Signed-off-by: Denys Vlasenko --- shell/hush.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shell/hush.c') diff --git a/shell/hush.c b/shell/hush.c index 4fdd15900..89e06df4d 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -4226,6 +4226,14 @@ static char *fetch_till_str(o_string *as_string, int prev = 0; /* not \ */ int ch; + /* Starting with "" is necessary for this case: + * cat <