Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: 3.1.5-pws-4: Re: BUG: array splices
- X-seq: zsh-workers 4874
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Phil Pennock <phil@xxxxxxxxxxxxxxxxxxxxx>, Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: PATCH: 3.1.5-pws-4: Re: BUG: array splices
- Date: Sun, 3 Jan 1999 12:33:38 -0800
- In-reply-to: <19981220044847.53415@xxxxxxxxxxxxxxxxxxxxx>
- References: <19981220044847.53415@xxxxxxxxxxxxxxxxxxxxx>
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