Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1137 → Rev 1138

/svarcom/trunk/cmd/set.c
62,11 → 62,12
const char far *ptr;
unsigned short i;
 
/* locate the first space or tab */
for (ptr = p->cmdline; ((*ptr != ' ') && (*ptr != '\t')); ptr++);
/* locate the first space (note that cmdline separators should be sanitized
* to space only by now) */
for (ptr = p->cmdline; *ptr != ' '; ptr++);
 
/* now locate the first non-space/non-tab: that's where the variable name begins */
for (; ((*ptr == ' ') || (*ptr == '\t')); ptr++);
/* now locate the first non-space: that's where the variable name begins */
for (; *ptr == ' '; ptr++);
 
/* copy variable name to buff */
i = 0;
/svarcom/trunk/command.c
1043,6 → 1043,14
/* move pointer forward to skip over any leading spaces */
while (*cmdline == ' ') cmdline++;
 
/* sanitize separators into spaces */
for (i = 0; cmdline[i] != 0; i++) {
switch (cmdline[i]) {
case '\t':
cmdline[i] = ' ';
}
}
 
/* update rmod's ptr to COMPSPEC so it is always up to date */
rmod_updatecomspecptr(rmod->rmodseg, *rmod_envseg);
 
/svarcom/trunk/history.txt
9,7 → 9,7
=== ver 2022.4 (xx.xx.202x) ==================================================
 
- SET command: fixed upcasing of variable names with high-ASCII chars (bttr)
- SET command: accepts tab character between SET and variable name (bttr)
- tabs are accepted as command-line separators
 
 
=== ver 2022.3 (13.03.2022) ==================================================