comparison input/input.c @ 15162:9c7c363837c9

when parsing one cmd argument, only un-escape _this_ argument, not the following ones
author aurel
date Fri, 15 Apr 2005 14:52:33 +0000
parents 96512bcb2eca
children 39eb8a327ea9
comparison
equal deleted inserted replaced
15161:eb7823afb1f6 15162:9c7c363837c9
626 ptr = NULL; 626 ptr = NULL;
627 break; 627 break;
628 } else if(!e) e = ptr+strlen(ptr); 628 } else if(!e) e = ptr+strlen(ptr);
629 l = e-start; 629 l = e-start;
630 ptr2 = start; 630 ptr2 = start;
631 for(e = strchr(ptr2,'\\') ; e ; e = strchr(ptr2,'\\')) { 631 for(e = strchr(ptr2,'\\') ; e && e<start+l ; e = strchr(ptr2,'\\')) {
632 memmove(e,e+1,strlen(e)); 632 memmove(e,e+1,strlen(e));
633 ptr2 = e + 1; 633 ptr2 = e + 1;
634 l--; 634 l--;
635 } 635 }
636 cmd->args[i].v.s = (char*)malloc((l+1)*sizeof(char)); 636 cmd->args[i].v.s = (char*)malloc((l+1)*sizeof(char));