zsh-workers
 help / color / mirror / code / Atom feed
From: Swen Thuemmler <swen@uni-paderborn.de>
To: Zoltan Hidvegi <hzoli@cs.elte.hu>
Cc: zsh-workers@math.gatech.edu
Subject: Re: zsh-3.0-pre1 released
Date: Fri, 28 Jun 1996 23:58:46 +0200 (MET DST)	[thread overview]
Message-ID: <Pine.LNX.3.94.960628235111.21772B-100000@hobbiton.uni-paderborn.de> (raw)
In-Reply-To: <199606281526.RAA01983@bolyai.cs.elte.hu>

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



  parent reply	other threads:[~1996-06-28 22:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199606281526.RAA01983@bolyai.cs.elte.hu>
1996-06-28 16:45 ` Zefram
1996-06-28 17:10   ` Zoltan Hidvegi
1996-06-28 17:21     ` Zefram
1996-06-28 17:52       ` Wayne Davison
1996-06-28 17:57         ` Zefram
1996-06-28 18:17         ` Geoff Wing
1996-06-29  0:20       ` Clive Messer
1996-06-29 15:55         ` Zoltan Hidvegi
1996-06-28 21:58 ` Swen Thuemmler [this message]
1996-06-28 18:04 whukriede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.94.960628235111.21772B-100000@hobbiton.uni-paderborn.de \
    --to=swen@uni-paderborn.de \
    --cc=hzoli@cs.elte.hu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).