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

Re: zsh-3.0-pre1 released



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