summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2001-09-19 19:58:09 +0000
committertegge <tegge@FreeBSD.org>2001-09-19 19:58:09 +0000
commit221fff643731890a2799e1730976fa57fbd0d9c4 (patch)
treea605421ae04ed4467667415b02d901e742962560 /bin
parentb56fb0e4ddfdb0285429a33dfc7d754d6a12caf9 (diff)
downloadFreeBSD-src-221fff643731890a2799e1730976fa57fbd0d9c4.zip
FreeBSD-src-221fff643731890a2799e1730976fa57fbd0d9c4.tar.gz
Adjust some type checks to include CTLQUOTEMARK in the range of
shell control characters.
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/mksyntax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c
index aace57d..d4a1cd8 100644
--- a/bin/sh/mksyntax.c
+++ b/bin/sh/mksyntax.c
@@ -352,9 +352,9 @@ print(name)
static char *macro[] = {
"#define is_digit(c)\t((c >= 0 && is_type+SYNBASE)[c] & ISDIGIT)",
- "#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && isalpha((unsigned char) (c)))",
- "#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalpha((unsigned char) (c))))",
- "#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalnum((unsigned char) (c))))",
+ "#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && isalpha((unsigned char) (c)))",
+ "#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && ((c) == '_' || isalpha((unsigned char) (c))))",
+ "#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && ((c) == '_' || isalnum((unsigned char) (c))))",
"#define is_special(c)\t((is_type+SYNBASE)[c] & (ISSPECL|ISDIGIT))",
NULL
};
OpenPOWER on IntegriCloud