tcsh/tcsh-6.15.00-var-sub.patch

13 lines
442 B
Diff

diff -up tcsh-6.15.00/sh.dol.c.var-sub tcsh-6.15.00/sh.dol.c
--- tcsh-6.15.00/sh.dol.c.var-sub 2006-09-14 20:30:16.000000000 +0200
+++ tcsh-6.15.00/sh.dol.c 2008-08-29 12:37:18.000000000 +0200
@@ -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;