From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id GAA18969 for ; Fri, 10 Nov 1995 06:15:34 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA04676; Thu, 9 Nov 1995 13:58:08 -0500 Resent-Date: Thu, 09 Nov 1995 13:58:58 -0500 Old-Return-Path: Message-Id: <9511091859.AA25845@spacely.afive> To: schaefer@z-code.ncd.com Cc: zsh-workers@math.gatech.edu Subject: Re: Colon modifiers on history substitution In-Reply-To: schaefer's message of Thu, 09 Nov 1995 09:35:26 -0800. <951109093526.ZM24995@zyrcon.z-code.com> Reply-To: acs@world.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 09 Nov 1995 13:58:58 -0500 From: Vinnie Shelton Resent-Message-Id: <"o_DBb2.0.x81._yaem"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/588 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu In message <951109093526.ZM24995@zyrcon.z-code.com>, Barton E. Schaefer wrote: >On Nov 9, 9:21am, Vinnie Shelton wrote: >} Subject: Colon modifiers on history substitution >} >} :p no longer works after a ^ substitution > >This was never supposed to work -- you're using an undocumented side- >effect of the way that Paul F. originally implemented ^ substitution. > >Now that history substitutions no longer rely on rewriting the parser >input, the side-effect has gone away. It's just my week to trip over ghosts, I guess. Since it works in csh, I always assumed this was an officially sanctioned "good thing". I'd prefer that zsh follow csh on this, but it's not worth a significant effort, IMO. Hmm, I was about to ask what I could do instead - presto - expansion almost works: % echo aacd aacd ^aa^ab results in: echo ab cd If we could get rid of that extra space, that would be cool! --Vin