tcsh/tcsh-6.15.00-var-sub.patch
vcrhonek bb709b6447 Fix '\' can not be used to quote all delimiters, Fix name[selector] should
fail when any number of 'selector' is out of range
2008-02-29 12:32:23 +00:00

14 lines
342 B
Diff

diff --git a/sh.dol.c b/sh.dol.c
index 73ac3b2..0e7c87d 100755
--- a/sh.dol.c
+++ b/sh.dol.c
@@ -613,7 +613,7 @@ Dgetdol(void)
for (i = 0; Isdigit(*np); i = i * 10 + *np++ - '0')
continue;
- if ((i < 0 || i > upb) && !any("-*", *np)) {
+ if (i < 0 || i > upb) {
cleanup_until(&name);
dolerror(vp->v_name);
return;