fix lost file reference + incorrect unexpected token on herestring
This commit is contained in:
parent
f851650c15
commit
bc846bcc56
1 changed files with 4 additions and 2 deletions
|
|
@ -609,7 +609,9 @@ parse_context parse_heredocument(parse_context ctx)
|
|||
ctx.i = ctx.size;
|
||||
}
|
||||
// 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;
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue