Fix a problem with passing quoted strings down to commands.

Reviewed by:	Sean Eric Fagan
This commit is contained in:
sef 1994-08-24 21:14:27 +00:00
parent c80f2b804a
commit 8149beac51

View File

@ -133,14 +133,17 @@ brk_string(str, store_argc)
switch(ch = *p) {
case '"':
case '\'':
if (inquote)
if (inquote) {
if (inquote == ch)
inquote = '\0';
else
break;
else
} else {
inquote = (char) ch;
continue;
start = t;
continue;
}
/* FALLTHROUGH */
case ' ':
case '\t':
if (inquote)