Unlike other parse.y variants, cwm's allowed 'command xx /path/to/xx' without

quotes. Reinstate this support lost in recent sync diff and add a comment to
show that it's intentional. ok okan@
This commit is contained in:
sthen 2013-06-03 20:33:17 +00:00
parent 692d341dfc
commit 09f3275561

View File

@ -465,13 +465,13 @@ nodigits:
}
}
/* Similar to other parse.y copies, but also allows '/' in strings */
#define allowed_in_string(x) \
(isalnum(x) || (ispunct(x) && x != '(' && x != ')' && \
x != '{' && x != '}' && x != '<' && x != '>' && \
x != '!' && x != '=' && x != '/' && x != '#' && \
x != ','))
x != '!' && x != '=' && x != '#' && x != ','))
if (isalnum(c) || c == ':' || c == '_' || c == '*') {
if (isalnum(c) || c == ':' || c == '_' || c == '*' || c == '/') {
do {
*p++ = c;
if ((unsigned)(p-buf) >= sizeof(buf)) {