aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index b0c7dac54..987d618c6 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6680,6 +6680,7 @@ subevalvar(char *p, char *varname, int strloc, int subtype,
6680 if (*loc++ == ':') { 6680 if (*loc++ == ':') {
6681 len = number(loc); 6681 len = number(loc);
6682 } 6682 }
6683//TODO: number() chokes on "-n". In bash, LEN=-n means strlen()-n
6683 } 6684 }
6684 if (pos < 0) { 6685 if (pos < 0) {
6685 /* ${VAR:$((-n)):l} starts n chars from the end */ 6686 /* ${VAR:$((-n)):l} starts n chars from the end */