diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-06-03 20:33:18 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-06-03 20:33:18 +0000 |
commit | 5d038053db82d7061b63dba3b789b65c2eb375a1 (patch) | |
tree | 3db293ec1e28108cbd8c172a6afc91ed9a20fb20 | |
parent | 21d220a2b8804ab9888f141c9cc6dd5972465cb6 (diff) |
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@
-rw-r--r-- | app/cwm/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/cwm/parse.y b/app/cwm/parse.y index c21461cac..c076c9f7d 100644 --- a/app/cwm/parse.y +++ b/app/cwm/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.44 2013/05/22 16:32:15 okan Exp $ */ +/* $OpenBSD: parse.y,v 1.45 2013/06/03 20:33:17 sthen Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -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)) { |