From be4c043a0823c9e5eeaa2f376d56c29dbfd02de0 Mon Sep 17 00:00:00 2001 From: zawz Date: Wed, 30 Jun 2021 09:43:48 +0200 Subject: [PATCH] fix parsing escaped subshells in heredocuments --- src/parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.cpp b/src/parse.cpp index e8a64a0..ce7d67a 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -541,7 +541,7 @@ std::pair parse_arg(parse_context ctx, const char* end, con { ctx.i += 2; } - else if(doquote && ctx[ctx.i]=='\\') // backslash: don't check next char + else if(ctx[ctx.i]=='\\') // backslash: don't check next char { ctx.i++; if(ctx.i>=ctx.size)