From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17268 invoked from network); 25 Oct 2006 00:36:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Oct 2006 00:36:49 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 62067 invoked from network); 25 Oct 2006 00:36:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Oct 2006 00:36:42 -0000 Received: (qmail 17728 invoked by alias); 25 Oct 2006 00:36:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10896 Received: (qmail 17718 invoked from network); 25 Oct 2006 00:36:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Oct 2006 00:36:32 -0000 Received: (qmail 60690 invoked from network); 25 Oct 2006 00:36:32 -0000 Received: from 81-174-24-34.f5.ngi.it (HELO lothlorien.passione) (81.174.24.34) by a.mx.sunsite.dk with SMTP; 25 Oct 2006 00:36:30 -0000 Received: by lothlorien.passione (Postfix, from userid 1000) id 3ECDD339E; Wed, 25 Oct 2006 02:36:30 +0200 (CEST) Date: Wed, 25 Oct 2006 02:36:30 +0200 From: Fernando Vezzosi To: zsh-users@sunsite.dk Subject: Re: store some parameters/arguments for later use Message-ID: <20061025003630.GA1077@lothlorien.passione> Mail-Followup-To: Fernando Vezzosi , zsh-users@sunsite.dk References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Operating-System: Linux lothlorien 2.6.17.8-lothlorien #1 Fri Aug 25 21:06:52 CEST 2006 i686 GNU/Linux X-Uptime: 02:30:49 up 3:02, 5 users, load average: 0.00, 0.00, 0.00 User-Agent: Mutt/1.5.13 (2006-08-11) Hi everyone! I'm a happy lurker of zsh-*, now I figured I could even be helpful to someone else :) On Tue, Oct 24, 2006 at 05:15:42PM +0000, zzapper wrote: > > ls x1 x2 x3 > save_parameters > ... > ... > ... > vi recall_parameters If the `ls' command was command number, say, 15 in history, you would be able to use its arguments later with: !15:0 =3D=3D "ls" !15:1 =3D=3D "x1" !15:2 =3D=3D "x2" =2E. And so on Note that you can do it also this other way: !ls:0 =3D=3D "ls" # very useful example :) !ls:1 =3D=3D "x1" !ls:2 =3D=3D "x2" =2E. And so on HTH, bye --=20 Fernando Vezzosi 3F29 4D20 510E E1AE 991D 3B12 D6BE 7C05 B289 97C9