summaryrefslogtreecommitdiff
path: root/bin/csh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/char.c4
-rw-r--r--bin/csh/char.h2
-rw-r--r--bin/csh/dol.c4
-rw-r--r--bin/csh/lex.c6
4 files changed, 8 insertions, 8 deletions
diff --git a/bin/csh/char.c b/bin/csh/char.c
index f552a28684a5..eb2dab68bf10 100644
--- a/bin/csh/char.c
+++ b/bin/csh/char.c
@@ -63,10 +63,10 @@ unsigned short _cmap[256] = {
_CTR, _CTR, _CTR, _CTR,
/* sp ! " # */
- _SP|_META, 0, _Q, _META,
+ _SP|_META, 0, _Q2, _META,
/* $ % & ' */
- _DOL, 0, _META|_CMD, _Q,
+ _DOL, 0, _META|_CMD, _Q2,
/* ( ) * + */
_META|_CMD, _META, _GLOB, 0,
diff --git a/bin/csh/char.h b/bin/csh/char.h
index 297a6ee8e1e2..475436879180 100644
--- a/bin/csh/char.h
+++ b/bin/csh/char.h
@@ -42,7 +42,7 @@ extern unsigned char _cmap_lower[], _cmap_upper[];
#endif
-#define _Q 0x0001 /* '" */
+#define _Q2 0x0001 /* '" */
#define _Q1 0x0002 /* ` */
#define _SP 0x0004 /* space and tab */
#define _NL 0x0008 /* \n */
diff --git a/bin/csh/dol.c b/bin/csh/dol.c
index d2b28f5433b1..816b45840664 100644
--- a/bin/csh/dol.c
+++ b/bin/csh/dol.c
@@ -66,7 +66,7 @@ static Char *Dcp, **Dvp; /* Input vector for Dreadc */
#define unDgetC(c) Dpeekc = c
-#define QUOTES (_Q|_Q1|_ESC) /* \ ' " ` */
+#define QUOTES (_Q2|_Q1|_ESC) /* \ ' " ` */
/*
* The following variables give the information about the current
@@ -192,7 +192,7 @@ Dpack(wbuf, wp)
Gcat(STRNULL, wbuf);
return (NULL);
}
- if (cmap(c, _SP | _NL | _Q | _Q1)) { /* sp \t\n'"` */
+ if (cmap(c, _SP | _NL | _Q2 | _Q1)) { /* sp \t\n'"` */
unDgetC(c);
if (cmap(c, QUOTES))
return (wp);
diff --git a/bin/csh/lex.c b/bin/csh/lex.c
index 63af5da774a4..75fb7e3a7f70 100644
--- a/bin/csh/lex.c
+++ b/bin/csh/lex.c
@@ -315,7 +315,7 @@ loop:
break;
}
}
- else if (cmap(c, _META | _Q | _Q1 | _ESC)) {
+ else if (cmap(c, _META | _Q2 | _Q1 | _ESC)) {
if (c == '\\') {
c = getC(0);
if (c == '\n') {
@@ -327,7 +327,7 @@ loop:
*wp++ = '\\', --i;
c |= QUOTE;
}
- else if (cmap(c, _Q | _Q1)) { /* '"` */
+ else if (cmap(c, _Q2 | _Q1)) { /* '"` */
c1 = c;
dolflg = c == '"' ? DOALL : DOEXCL;
}
@@ -366,7 +366,7 @@ getC1(flag)
if ((c = *lap++) == 0)
lap = 0;
else {
- if (cmap(c, _META | _Q | _Q1))
+ if (cmap(c, _META | _Q2 | _Q1))
c |= QUOTE;
return (c);
}