From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21303 invoked from network); 14 Sep 2005 15:52:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Sep 2005 15:52:40 -0000 Received: (qmail 77622 invoked from network); 14 Sep 2005 15:52:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Sep 2005 15:52:33 -0000 Received: (qmail 10377 invoked by alias); 14 Sep 2005 15:52:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9416 Received: (qmail 10368 invoked from network); 14 Sep 2005 15:52:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Sep 2005 15:52:24 -0000 Received: (qmail 76653 invoked from network); 14 Sep 2005 15:52:24 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 14 Sep 2005 15:52:18 -0000 Received: from candle.brasslantern.com ([71.116.79.190]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IMT00152DF4PF91@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Wed, 14 Sep 2005 10:52:17 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j8EFqEKR027196 for ; Wed, 14 Sep 2005 08:52:15 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j8EFqEwl027195 for zsh-users@sunsite.dk; Wed, 14 Sep 2005 08:52:14 -0700 Date: Wed, 14 Sep 2005 15:52:14 +0000 From: Bart Schaefer Subject: Re: ^test^main line editting command In-reply-to: To: zsh-users@sunsite.dk Message-id: <1050914155214.ZM27194@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <3060c239050913053859d8d55b@mail.gmail.com> Comments: In reply to zzapper "Re: ^test^main line editting command" (Sep 14, 10:27am) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Sep 14, 10:27am, zzapper wrote: } } I hope I know most of the bang tricks !! etc. } But I was just hoping ,zsh being so twisted ,that there might just be } some clever tricks to the } ^str1^str2 mechanism There's really only one, but it's a pretty comprehensive trick. When you write ^str1^st2 zsh converts it internally to !!:s^str1^str2 which means that you can add a third carat and go on with your command line, including appending a colon and then more history modifiers. E.g. ^str1^str2^:u:p (I'm not sure what you were hinting at with the "some kind of memory" question.)