From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15832 invoked from network); 11 Mar 2004 19:06:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2004 19:06:33 -0000 Received: (qmail 15186 invoked by alias); 11 Mar 2004 19:05:56 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7151 Received: (qmail 15164 invoked from network); 11 Mar 2004 19:05:55 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Mar 2004 19:05:55 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [63.249.88.2] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Mar 2004 19:5:54 -0000 Received: by binome.blorf.net (Postfix, from userid 1000) id 7D7093006; Thu, 11 Mar 2004 11:05:53 -0800 (PST) Date: Thu, 11 Mar 2004 11:05:53 -0800 From: Wayne Davison To: Bart Schaefer Cc: zsh-users@sunsite.dk Subject: Re: alias vl="vi !$" Message-ID: <20040311190553.GA12542@blorf.net> References: <65a050lf2u4bjch4u2uv68q56u5co0gknp@4ax.com> <20040311091003.GD844@mail.guild.uwa.edu.au> <4im0509toihq2ef1vlnnid6t93j90f6gor@4ax.com> <15272.1079008435@csr.com> <39n050dv0evle58451ugj2m1vfktsj1e1b@4ax.com> <20040311125558.GA24218@picard.franken.de> <1040311171735.ZM20352@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1040311171735.ZM20352@candle.brasslantern.com> User-Agent: Mutt/1.5.5.1+cvs20040105i On Thu, Mar 11, 2004 at 05:17:35PM +0000, Bart Schaefer wrote: > Inside a function, however, $_ has already been changed to be the last > word of the _currently executing_ command, the same as as $argv[-1]. But it's not changed in an alias, so the simplest approach would appear to be: alias vl='vi $_' That works for me. ..wayne..