src/java.base/share/native/libjli/args.c
changeset 51958 53a4760e9fcc
parent 50469 1476689320e0
child 59020 aebd72de84b0
equal deleted inserted replaced
51957:2712735bc434 51958:53a4760e9fcc
   261                 if (pctx->state != IN_QUOTE) {
   261                 if (pctx->state != IN_QUOTE) {
   262                     continue;
   262                     continue;
   263                 }
   263                 }
   264                 JLI_List_addSubstring(pctx->parts, anchor, nextc - anchor);
   264                 JLI_List_addSubstring(pctx->parts, anchor, nextc - anchor);
   265                 pctx->state = IN_ESCAPE;
   265                 pctx->state = IN_ESCAPE;
       
   266                 // anchor after backslash character
       
   267                 anchor = nextc + 1;
   266                 break;
   268                 break;
   267             case '\'':
   269             case '\'':
   268             case '"':
   270             case '"':
   269                 if (pctx->state == IN_QUOTE && pctx->quote_char != ch) {
   271                 if (pctx->state == IN_QUOTE && pctx->quote_char != ch) {
   270                     // not matching quote
   272                     // not matching quote