summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r--bin/sh/expand.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c
index 7fd2ba5..f26a999 100644
--- a/bin/sh/expand.c
+++ b/bin/sh/expand.c
@@ -763,6 +763,11 @@ record:
goto record;
break;
+ case VSERROR:
+ c = p - var - 1;
+ error("${%.*s%s}: Bad substitution", c, var,
+ (c > 0 && *p != CTLENDVAR) ? "..." : "");
+
default:
abort();
}
OpenPOWER on IntegriCloud