Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-3.0-pre1 released
- X-seq: zsh-workers 1475
- From: Swen Thuemmler <swen@xxxxxxxxxxxxxxxx>
- To: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- Subject: Re: zsh-3.0-pre1 released
- Date: Fri, 28 Jun 1996 23:58:46 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199606281526.RAA01983@xxxxxxxxxxxxxxxxx>
On Fri, 28 Jun 1996, Zoltan Hidvegi wrote:
> There are many bugfixes in this release. This is a pre-release of the
> next production release, zsh-3.0.0.
Hi,
I've installed the new zsh, and now I get
BUG: permanent allocation in doshfunc
when I define chpwd(). The following patch does fix this, but may not be
optimal or correct:
--- zsh-3.0-pre1/Src/builtin.c~ Fri Jun 28 15:43:49 1996
+++ zsh-3.0-pre1/Src/builtin.c Fri Jun 28 23:36:09 1996
@@ -1269,7 +1269,13 @@
if ((l = getshfunc("chpwd"))) {
fflush(stdout);
fflush(stderr);
- doshfunc(dupstruct(l), NULL, 0, 1);
+ if (useheap)
+ doshfunc(dupstruct(l), NULL, 0, 1);
+ else {
+ heapalloc();
+ doshfunc(dupstruct(l), NULL, 0, 1);
+ permalloc();
+ }
}
/* handle directory stack sizes out of range */
Hope this helps.
--Swen
Messages sorted by:
Reverse Date,
Date,
Thread,
Author