8210810: Escaped character at specific position in argument file is not handled properly

Reviewed-by: alanb
This commit is contained in:
Bo Zhang 2018-09-28 13:15:01 -07:00 committed by Henry Jen
parent cc4436e2b9
commit 3a0b2d59ad
2 changed files with 18 additions and 3 deletions

View file

@ -263,6 +263,8 @@ static char* nextToken(__ctx_args *pctx) {
}
JLI_List_addSubstring(pctx->parts, anchor, nextc - anchor);
pctx->state = IN_ESCAPE;
// anchor after backslash character
anchor = nextc + 1;
break;
case '\'':
case '"':