Fix a problem with passing quoted strings down to commands.

Reviewed by:	Sean Eric Fagan
This commit is contained in:
Sean Eric Fagan 1994-08-24 21:14:27 +00:00
parent 2355afcfc6
commit 7267a81cea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2266

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)