tcsh/tcsh-6.15.00-var-sub.patch

14 lines
342 B
Diff
Raw Normal View History

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;