From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2970 invoked from network); 17 Apr 2005 13:12:13 -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:12:13 -0000 Received: (qmail 30385 invoked from network); 17 Apr 2005 13:12:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Apr 2005 13:12:05 -0000 Received: (qmail 7826 invoked by alias); 17 Apr 2005 13:11:59 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8686 Received: (qmail 7812 invoked from network); 17 Apr 2005 13:11:59 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Apr 2005 13:11:59 -0000 Received: (qmail 29383 invoked from network); 17 Apr 2005 13:11:59 -0000 Received: from smtp2.iitb.ac.in (HELO smtp1.iitb.ac.in) (203.197.74.149) by a.mx.sunsite.dk with SMTP; 17 Apr 2005 13:11:54 -0000 Received: (qmail 6400 invoked from network); 17 Apr 2005 18:41:57 +0530 Received: from unknown (HELO ldns1.iitb.ac.in) (10.200.12.1) by smtp1.iitb.ac.in with SMTP; 17 Apr 2005 18:41:57 +0530 Received: (qmail 6768 invoked by uid 781); 17 Apr 2005 13:11:51 -0000 Received: from 10.100.116.111 by ldns1 (envelope-from , uid 502) with qmail-scanner-1.23 (spamassassin: 2.54. Clear:RC:1(10.100.116.111):. Processed in 0.019243 secs); 17 Apr 2005 13:11:51 -0000 Received: from unknown (HELO ?10.100.116.111?) (10.100.116.111) by ldns1.iitb.ac.in with SMTP; 17 Apr 2005 13:11:51 -0000 Message-ID: <426260BF.8020707@cc.iitb.ac.in> Date: Sun, 17 Apr 2005 18:42:31 +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> 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=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 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. -- Saket. ... The gene pool sure could use a little chlorine.