fix parsing escaped subshells in heredocuments

This commit is contained in:
zawz 2021-06-30 09:43:48 +02:00
parent 3af1fc57fc
commit be4c043a08

View file

@ -541,7 +541,7 @@ std::pair<arg*, parse_context> 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)