zsh-workers
 help / color / mirror / code / Atom feed
From: P.Stephenson@swansea.ac.uk
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: Startup Time
Date: Wed, 08 Nov 95 08:39:39 +0000	[thread overview]
Message-ID: <25373.9511080839@pygmy.swan.ac.uk> (raw)
In-Reply-To: "awick@barney.purple.org"'s message of "Tue, 07 Nov 95 13:10:58 EST."             <9511071810.AA16690@purple.org>

awick@barney.purple.org wrote:
> 1)  ^ by itself crashes zsh.  (present since at least beta6)

This seems to be the minmal fix.  Although I'm not sure this is
documented, what ^ on it's own does is attempt to replace the last
pattern substituted with nothing in the previous history line.  This
was failing if there was no previous substitution.  This bug crept in
when I tidied up the history code: before, the code hacked the input
and the history code status so that it thought a real substitution
like !!^ was coming up, which handles this case.  If your dead set on
the message "no previous subsitution with &" here too, I can add that.

*** Src/hist.c~	Tue Nov  7 09:48:34 1995
--- Src/hist.c	Wed Nov  8 09:25:47 1995
***************
*** 152,158 ****
  	inungetc(hatchar);
  	if (!(ehist = gethist(defev))
  	    || !(sline = getargs(ehist, 0, ehist->nwords-1))
! 	    || getsubsargs(sline))
  	    return -1;
  	subst(&sline, hsubl, hsubr, 0);
      } else {
--- 152,158 ----
  	inungetc(hatchar);
  	if (!(ehist = gethist(defev))
  	    || !(sline = getargs(ehist, 0, ehist->nwords-1))
! 	    || getsubsargs(sline) || !hsubl)
  	    return -1;
  	subst(&sline, hsubl, hsubr, 0);
      } else {


-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


      parent reply	other threads:[~1995-11-08  8:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-07 18:10 Andy Wick
1995-11-07 21:22 ` Zoltan Hidvegi
1995-11-08  8:39 ` P.Stephenson [this message]

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=25373.9511080839@pygmy.swan.ac.uk \
    --to=p.stephenson@swansea.ac.uk \
    --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).