From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10566 invoked from network); 17 Apr 2005 13:19:01 -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:19:01 -0000 Received: (qmail 35470 invoked from network); 17 Apr 2005 13:18:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Apr 2005 13:18:54 -0000 Received: (qmail 11434 invoked by alias); 17 Apr 2005 13:18:48 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8687 Received: (qmail 11420 invoked from network); 17 Apr 2005 13:18:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Apr 2005 13:18:48 -0000 Received: (qmail 34477 invoked from network); 17 Apr 2005 13:18:48 -0000 Received: from blackbird.world-net.net (204.57.72.6) by a.mx.sunsite.dk with SMTP; 17 Apr 2005 13:18:42 -0000 Received: from aspen (dsl2-061.guam.netpci.com [202.128.83.61]) (authenticated bits=0) by blackbird.world-net.net (8.12.11/8.12.8) with ESMTP id j3HDIC6i004707; Sun, 17 Apr 2005 08:18:14 -0500 (CDT) (envelope-from teratorn@world-net.net) To: "Saket Sathe" Cc: zsh-users@sunsite.dk Subject: Re: Substitution References: <42625E80.4020607@cc.iitb.ac.in> <426260BF.8020707@cc.iitb.ac.in> Message-ID: Date: Sun, 17 Apr 2005 23:18:18 +1000 From: "Eric Mangold" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <426260BF.8020707@cc.iitb.ac.in> User-Agent: Opera M2/7.54 (Linux, build 955) X-Scanned-By: MIMEDefang 2.48 on 204.57.72.6 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=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 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