zsh-workers
 help / color / mirror / code / Atom feed
From: Eskandar Ensafi <esky@CS.UCLA.EDU>
To: zsh-workers@math.gatech.edu
Subject: New hist.c patch (Was: Re: UGLY CRASHES UNDER ZSH 2.6 BETA 12)
Date: Fri, 01 Mar 1996 10:34:54 -0800	[thread overview]
Message-ID: <9603011834.AA10797@marathon.cs.ucla.edu> (raw)
In-Reply-To: Your message of "Fri, 01 Mar 1996 14:36:42 +0100." <9603011336.AA12720@hydra.ifh.de>


Hello,

On Fri, 01 Mar 1996 14:36:42 +0100, Peter Stephenson wrote:
[original bug report omitted]
> I can't reproduce this either for some reason, but my guess is that
> the alias stack has got a NULL on it, which signifies history
> expansion, and the lexrestore() is assuming it's an alias and trying
> to dereference it.  Have a go at this (should be completely safe to
> give to the kids at home):


Thanks!  It worked.  Here's Peter's patch again:


==============================================================================
*** Src/hist.c~	Mon Feb 19 10:09:38 1996
--- Src/hist.c	Fri Mar  1 14:31:05 1996
***************
*** 440,447 ****
      Alias ix;
  
      while (alstackind) {
! 	ix = alstack[--alstackind];
! 	ix->inuse = 0;
      }
  }
  
--- 440,447 ----
      Alias ix;
  
      while (alstackind) {
! 	if ((ix = alstack[--alstackind]))
! 	  ix->inuse = 0;
      }
  }
==============================================================================

Later,

- Eskandar

------------------------------------------------------------------------------
Eskandar Ensafi                              Object-Oriented Software Engineer
University of California, Los Angeles                                         
Department of Biomathematics              esky@cs.ucla.edu (ASCII, MIME, NeXT)
School of Medicine                  http://www.cs.ucla.edu/csd-lanai/fweb/esky
------------------------------------------------------------------------------


  reply	other threads:[~1996-03-01 18:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-28  8:46 UGLY CRASHES UNDER ZSH 2.6 BETA 12 Eskandar Ensafi
1996-02-28 12:24 ` Zefram
1996-02-28 17:17   ` Eskandar Ensafi
1996-03-01 13:36     ` Peter Stephenson
1996-03-01 18:34       ` Eskandar Ensafi [this message]
1996-03-01 21:26       ` Zoltan Hidvegi

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=9603011834.AA10797@marathon.cs.ucla.edu \
    --to=esky@cs.ucla.edu \
    --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).