summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lex.c b/lex.c
index 45b6ddb..291b747 100644
--- a/lex.c
+++ b/lex.c
@@ -70,11 +70,13 @@ enum filedescriptors {
};
/* does this string require quoting? */
-extern bool quotep(char *s) {
+extern bool quotep(char *s, bool dollar) {
unsigned char c;
+ const char *meta;
+ meta = dollar ? dnw : nw;
while ((c = *s++))
- if (nw[c])
+ if (meta[c])
return TRUE;
return FALSE;
}