From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2734 invoked from network); 14 Oct 2002 18:36:58 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Oct 2002 18:36:58 -0000 Received: (qmail 11375 invoked by alias); 14 Oct 2002 18:36:11 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5441 Received: (qmail 11338 invoked from network); 14 Oct 2002 18:36:07 -0000 From: "Bart Schaefer" Message-Id: <1021014183459.ZM28573@candle.brasslantern.com> Date: Mon, 14 Oct 2002 18:34:59 +0000 In-Reply-To: <20021014155406.GN364@freepuppy.bellavista.cz> Comments: In reply to Roman Neuhauser "Re: history expansion bug?" (Oct 14, 5:54pm) References: <20021014154810.GM364@freepuppy.bellavista.cz> <20021014155406.GN364@freepuppy.bellavista.cz> X-Mailer: Z-Mail (5.0.0 30July97) To: Roman Neuhauser , zsh users Subject: Re: history expansion bug? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 14, 5:54pm, Roman Neuhauser wrote: } Subject: Re: history expansion bug? } } aha. those ampersands substitute the pattern. i'm now looking for a } way to disable it: backslashing them doesn't seem to have any } effect. Double the backslashes: schaefer[524] echo foo foo schaefer[525] ^echo^print foo \\&\\& bar print foo && bar foo foo zsh: command not found: bar This is a bug, sort of ... ^x^y is rewritten as !!:s^x^y and re-evaluated, which causes an extra level of history-backslashes to be stripped. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net