From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16544 invoked from network); 17 Apr 2005 13:27:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Apr 2005 13:27:41 -0000 Received: (qmail 42410 invoked from network); 17 Apr 2005 13:27:36 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Apr 2005 13:27:36 -0000 Received: (qmail 16661 invoked by alias); 17 Apr 2005 13:27:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8688 Received: (qmail 16648 invoked from network); 17 Apr 2005 13:27:28 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Apr 2005 13:27:28 -0000 Received: (qmail 41415 invoked from network); 17 Apr 2005 13:27:27 -0000 Received: from smtp2.iitb.ac.in (HELO smtp1.iitb.ac.in) (203.199.81.149) by a.mx.sunsite.dk with SMTP; 17 Apr 2005 13:27:23 -0000 Received: (qmail 9185 invoked from network); 17 Apr 2005 18:57:23 +0530 Received: from unknown (HELO ldns2.iitb.ac.in) (10.200.12.2) by smtp1.iitb.ac.in with SMTP; 17 Apr 2005 18:57:23 +0530 Received: (qmail 12599 invoked by uid 780); 17 Apr 2005 13:27:17 -0000 Received: from 10.100.116.111 by ldns2 (envelope-from , uid 502) with qmail-scanner-1.23 (spamassassin: 2.64. Clear:RC:1(10.100.116.111):. Processed in 0.019374 secs); 17 Apr 2005 13:27:17 -0000 Received: from unknown (HELO ?10.100.116.111?) (10.100.116.111) by ldns2.iitb.ac.in with SMTP; 17 Apr 2005 13:27:17 -0000 Message-ID: <4262645D.1010406@cc.iitb.ac.in> Date: Sun, 17 Apr 2005 18:57:57 +0530 From: Saket Sathe User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Mangold CC: zsh-users@sunsite.dk Subject: Re: Substitution References: <42625E80.4020607@cc.iitb.ac.in> <426260BF.8020707@cc.iitb.ac.in> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-1.8 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -1.8 Eric Mangold wrote: > On Sun, 17 Apr 2005 18:42:31 +0530, Saket Sathe > wrote: > >> Eric Mangold wrote: >> >>> On Sun, 17 Apr 2005 18:32:56 +0530, Saket Sathe >>> wrote: >>> >>>> Hi, >>>> Suppose I've typed these commands: >>>> >>>> # mv somefile1 /home/saket/stuff/books/ >>>> # acroread somefile.pdf >>>> # mv somefile2 /home/saket/stuff/books/ >>>> >>>> How can I substitute the '/home/saket/stuff/books/' of the first >>>> command into the last command ? >>>> Currently I just retype it again :( >>> >>> >>> >>> I would push M-. twice. Assuming you have emacs bindings set as in >>> "bindkey -e" >>> >>> -Eric >> >> >> Can '!:n' or something similar be used ? Or is '!:n' used only if >> you want arguments from the _last_ command. > > > That'll all be documented here: > http://zsh.sunsite.dk/Doc/Release/zsh_13.html#SEC48 > > -Eric Thanks :) got it.. -- Saket. ... It is better to be violent, if there is violence in our hearts, than to put on the cloak of nonviolence to cover impotence. - Mahatma Gandhi