cmd.exe: Treat tabs as parameter delimiters.
diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index 157ad08..33b54f7 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -150,6 +150,7 @@
while (TRUE) {
switch (*s) {
case ' ': /* Skip leading spaces */
+ case '\t': /* Treat tabs as spaces */
s++;
break;
case '"':
@@ -175,7 +176,7 @@
default:
/* Only return where if it is for the right parameter */
if (where != NULL && i==n) *where = s;
- while ((*s != '\0') && (*s != ' ') && (*s != ',') && (*s != '=')) {
+ while ((*s != '\0') && (*s != ' ') && (*s != ',') && (*s != '=') && (*s != '\t')) {
*p++ = *s++;
}
if (i == n && (p!=param)) {