summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorcracauer <cracauer@FreeBSD.org>2000-08-16 12:23:57 +0000
committercracauer <cracauer@FreeBSD.org>2000-08-16 12:23:57 +0000
commit1483cf9cb70695ead4dc8e82732bb7812735b523 (patch)
tree392c1d36510df6423c5aeb3d2597c6bee54cc367 /bin/sh/parser.c
parent42bbf4dc0613a5ee178a72ebfc36659d832f7cb8 (diff)
downloadFreeBSD-src-1483cf9cb70695ead4dc8e82732bb7812735b523.zip
FreeBSD-src-1483cf9cb70695ead4dc8e82732bb7812735b523.tar.gz
Disable part of my 8-bits fixes from December 1999.
Serious fix still needed, see discussion on -current (Subject: /bin/sh dumps core with here-document of 8bit text) Problem in this code originally spotted by Jun Kuriyama <kuriyama@FreeBSD.org>
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 8603fe1..a65dfb3 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -909,10 +909,7 @@ readtoken1(firstc, syntax, eofmark, striptabs)
for (;;) { /* until end of line or end of word */
CHECKSTRSPACE(3, out); /* permit 3 calls to USTPUTC */
- if (c < 0 && c != PEOF)
- synentry = CWORD;
- else
- synentry = syntax[c];
+ synentry = syntax[c];
switch(synentry) {
case CNL: /* '\n' */
OpenPOWER on IntegriCloud