Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-3.0.2 core'ing + a small feature request
- X-seq: zsh-workers 2909
- From: Peter Stephenson <pws@xxxxxx>
- To: carl.johnson@xxxxxxxxxxxxxxxx (Carl Johnson), zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: zsh-3.0.2 core'ing + a small feature request
- Date: Tue, 18 Feb 1997 09:56:25 +0100
- In-reply-to: "Carl Johnson"'s message of "Tue, 18 Feb 1997 15:44:40 MET." <199702180744.PAA19763@xxxxxxxxxxxxxxxx>
Carl Johnson wrote:
> hi,
> i am not on any of the zsh lists so please cc me on any replies.
>
> zsh-3.0.2 and solaris 2.5.1
> when i do....
>
> 1> ls -al
> 2> vared -h 1
> 3> <esc>k
> which gets me the ls -al line again, then hit return and it cores, every time
> .
The fix seems to be fairly simple. (I didn't even know this was
supported, but looking at the code it certainly should be.)
*** Src/Zle/zle_main.c.vn Sun Jan 12 01:46:43 1997
--- Src/Zle/zle_main.c Tue Feb 18 09:39:53 1997
***************
*** 613,619 ****
t[strlen(t) - 1] = '\0';
/* final assignment of parameter value */
pm = (Param) paramtab->getnode(paramtab, args[0]);
! if (PM_TYPE(pm->flags) == PM_ARRAY) {
PERMALLOC {
setaparam(args[0], spacesplit(t, 1));
} LASTALLOC;
--- 613,619 ----
t[strlen(t) - 1] = '\0';
/* final assignment of parameter value */
pm = (Param) paramtab->getnode(paramtab, args[0]);
! if (pm && PM_TYPE(pm->flags) == PM_ARRAY) {
PERMALLOC {
setaparam(args[0], spacesplit(t, 1));
} LASTALLOC;
--
Peter Stephenson <pws@xxxxxx> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author