fix lost file reference + incorrect unexpected token on herestring

This commit is contained in:
zawz 2021-06-22 10:27:19 +02:00
parent f851650c15
commit bc846bcc56

View file

@ -609,7 +609,9 @@ parse_context parse_heredocument(parse_context ctx)
ctx.i = ctx.size; ctx.i = ctx.size;
} }
// std::string tmpparse=std::string(ctx.data+j, ctx.i-j); // std::string tmpparse=std::string(ctx.data+j, ctx.i-j);
auto pval = parse_arg({ .data=ctx.data, .size=ctx.i, .i=j, .bash=ctx.bash} , NULL); parse_context newctx = make_context(ctx, j);
newctx.size = ctx.i;
auto pval = parse_arg(newctx , NULL, NULL);
ctx.here_document->here_document = pval.first; ctx.here_document->here_document = pval.first;
// //