< prev index next >
src/java.base/share/native/libjli/args.c
Print this page
rev 51884 : 8210810: Escaped character at specific position in argument file is not handled properly
Contributed-by: Bo Zhang <zhangbodut@gmail.com>
Reviewed-by: henryjen
*** 261,270 ****
--- 261,272 ----
if (pctx->state != IN_QUOTE) {
continue;
}
JLI_List_addSubstring(pctx->parts, anchor, nextc - anchor);
pctx->state = IN_ESCAPE;
+ // anchor after backslash character
+ anchor = nextc + 1;
break;
case '\'':
case '"':
if (pctx->state == IN_QUOTE && pctx->quote_char != ch) {
// not matching quote
< prev index next >