Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: 3.1.5-pws-4: Re: BUG: array splices



Catching up on mail that arrived during my winter vacation ...

On Dec 20,  4:48am, Phil Pennock wrote:
} Subject: BUG: array splices
}
} Basically, for any ${arrayname[start,stop]} zsh now seems to ignore the
} comma and everything after it

Some of the associative array code getting in the way of the old behavior.
This should fix it, and should apply to pws-4.

Index: Src/params.c
===================================================================
--- params.c	1998/12/18 16:09:26	1.19
+++ params.c	1999/01/03 20:24:37
@@ -765,7 +765,7 @@
 	} else if (rev) {
 	    v->isarr |= SCANPM_WANTVALS;
 	}
-	if (!down)
+	if (!down && PM_TYPE(v->pm->flags) == PM_HASHED)
 	    v->isarr &= ~SCANPM_MATCHMANY;
 	*inv = ind;
     }

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author