From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27158 invoked from network); 8 Sep 2006 16:22:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) 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.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Sep 2006 16:22:22 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 13100 invoked from network); 8 Sep 2006 16:22:12 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Sep 2006 16:22:12 -0000 Received: (qmail 27123 invoked by alias); 8 Sep 2006 16:22:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10695 Received: (qmail 27113 invoked from network); 8 Sep 2006 16:22:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Sep 2006 16:22:04 -0000 Received: (qmail 12080 invoked from network); 8 Sep 2006 16:22:04 -0000 Received: from a.mx.bigasterisk.com (HELO bang.bigasterisk.com) (66.80.49.27) by a.mx.sunsite.dk with SMTP; 8 Sep 2006 16:22:01 -0000 Received: from [10.1.0.229] ([10.1.0.229]) (authenticated bits=0) by bang.bigasterisk.com (8.13.5.20060308/8.13.5/Debian-3ubuntu1) with ESMTP id k88GLvN8017109; Fri, 8 Sep 2006 09:21:59 -0700 Message-ID: <450198AD.1070104@bigasterisk.com> Date: Fri, 08 Sep 2006 09:22:05 -0700 From: Drew Perttula User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: zsh-users@sunsite.dk Subject: Re: Refereing to elements in current command line References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit zzapper wrote: > Hi > Sorry if this is an old chestnut > > I often type somethig like > >> cp fredjoesid.php danjoesid.php > > At Present I use i a binding Control-O to do > >> cp fredjoesid.php fredjoesid.php > end then vi edit > > But how else can I do this? > > perhaps with !# cp fredjoesid.php !#$:s/fred/dan then tab to check that the last argument expands the way you want