From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22117 invoked from network); 16 Aug 2005 16:34:46 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Aug 2005 16:34:46 -0000 Received: (qmail 93346 invoked from network); 16 Aug 2005 16:34:40 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Aug 2005 16:34:40 -0000 Received: (qmail 21542 invoked by alias); 16 Aug 2005 16:34:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9324 Received: (qmail 21533 invoked from network); 16 Aug 2005 16:34:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Aug 2005 16:34:33 -0000 Received: (qmail 92388 invoked from network); 16 Aug 2005 16:34:33 -0000 Received: from cluster-e.mailcontrol.com (HELO rly20e.srv.mailcontrol.com) (217.79.216.190) by a.mx.sunsite.dk with SMTP; 16 Aug 2005 16:34:26 -0000 Received: from iris.logica.co.uk (iris.logica.co.uk [158.234.9.163]) by rly20e.srv.mailcontrol.com (MailControl) with ESMTP id j7GGYKSn015987 for ; Tue, 16 Aug 2005 17:34:21 +0100 Received: from trentino.logica.co.uk ([158.234.142.59]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id j7GGYKTp005303 for ; Tue, 16 Aug 2005 17:34:20 +0100 Received: from trentino.groupinfra.com (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id 5EB178042A for ; Tue, 16 Aug 2005 18:34:20 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20050816161814.GA10992@ay.vinc17.org> From: Oliver Kiddle References: <20050815103557.GA1411@DervishD> <20050816154033.GY10992@ay.vinc17.org> <20050816155114.GA1854@DervishD> <20050816161814.GA10992@ay.vinc17.org> To: Zsh Users Subject: Re: Replacing sed for zsh portability Date: Tue, 16 Aug 2005 18:34:20 +0200 Message-ID: <12999.1124210060@trentino.groupinfra.com> X-Scanned-By: MailControl A-05-01-05 (www.mailcontrol.com) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Vincent Lefevre wrote: > I've had to switch to Perl for a simple replacement just because > in-place editing with sed isn't supported everywhere, and when it > is supported, it doesn't behave in the same way on every machine. If it is in-place editing you want, you can always use ed. You need to use a here-document for the replacement command but it works well. Oliver This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.