From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11968 invoked from network); 1 Mar 2006 16:36:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Mar 2006 16:36:10 -0000 Received: (qmail 6226 invoked from network); 1 Mar 2006 16:36:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Mar 2006 16:36:01 -0000 Received: (qmail 10064 invoked by alias); 1 Mar 2006 16:35:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9974 Received: (qmail 10055 invoked from network); 1 Mar 2006 16:35:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Mar 2006 16:35:52 -0000 Received: (qmail 5005 invoked from network); 1 Mar 2006 16:35:52 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 1 Mar 2006 16:35:51 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly11d.srv.mailcontrol.com (MailControl) with ESMTP id k21GZnMW028161 for ; Wed, 1 Mar 2006 16:35:49 GMT Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 1 Mar 2006 16:35:49 +0000 To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: ^foo^bar question In-reply-to: <20060301160218.GA26591@let.rug.nl> References: <20060301160218.GA26591@let.rug.nl> Date: Wed, 01 Mar 2006 16:35:33 +0000 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 01 Mar 2006 16:35:49.0235 (UTC) FILETIME=[329A3C30:01C63D4E] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-05 (www.mailcontrol.com) on 10.68.0.121 Francisco Borges wrote: > % mv ../2500s_4p_3ftr.txt 4p > % ^4^8 > % mv ../2500s_8p_3ftr.txt 4p # second "4" is unchanged. > ^^^^ > where only the first string occurence gets replaced. This happens with > 4.2.5, 4.3.0-dev-1 and 4.3.1. Is this the intended behavior? > > Is there any way to get multiple substitutions using ^foo^bar? >.. > BTW, Great to see 4.3.1 being released. Big thanks to all developers!! If you've got 4.3.1 you can now use: ^foo^bar^:G to do what you want. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php