summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-10 02:07:27 +0000
committerpeter <peter@FreeBSD.org>1996-09-10 02:07:27 +0000
commit3d58e0bf86507cdd7dd291260d2d8b7928f21eda (patch)
tree4b7d992e0383711d94ddd23149bd0ab1cd468b01 /bin/sh/parser.c
parent2a6480c367bd2621cada668a2e36069cd73c2e0a (diff)
downloadFreeBSD-src-3d58e0bf86507cdd7dd291260d2d8b7928f21eda.zip
FreeBSD-src-3d58e0bf86507cdd7dd291260d2d8b7928f21eda.tar.gz
ack! back these out so I can see what I did wrong. It looks like a
patch-by-hand botch, but it sig-11's during make world.
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 1ffa2c3..291f152 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1141,7 +1141,6 @@ parsesub: {
#ifndef GDB_HACK
static const char types[] = "}-+?=";
#endif
- int bracketed_name = 0; /* used to handle ${[0-9]*} variables */
c = pgetc();
if (c != '(' && c != '{' && !is_name(c) && !is_special(c)) {
@@ -1160,7 +1159,6 @@ parsesub: {
USTPUTC(VSNORMAL, out);
subtype = VSNORMAL;
if (c == '{') {
- bracketed_name = 1;
c = pgetc();
if (c == '#') {
if ((c = pgetc()) == '}')
@@ -1176,16 +1174,6 @@ parsesub: {
STPUTC(c, out);
c = pgetc();
} while (is_in_name(c));
- } else if (is_digit(c)) {
- if (bracketed_name) {
- do {
- STPUTC(c, out);
- c = pgetc();
- } while (is_digit(c));
- } else {
- STPUTC(c, out);
- c = pgetc();
- }
} else {
if (! is_special(c))
badsub: synerror("Bad substitution");
OpenPOWER on IntegriCloud