From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8167 invoked from network); 11 Mar 2009 08:25:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Mar 2009 08:25:39 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 33341 invoked from network); 11 Mar 2009 08:23:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Mar 2009 08:23:52 -0000 Received: (qmail 22273 invoked by alias); 11 Mar 2009 08:23:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13895 Received: (qmail 22260 invoked from network); 11 Mar 2009 08:23:34 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 11 Mar 2009 08:23:34 -0000 Received: from incc.be (incc.rocteur.com [65.99.212.71]) by bifrost.dotsrc.org (Postfix) with ESMTP id 687EA80307F8 for ; Wed, 11 Mar 2009 09:23:18 +0100 (CET) Received: by incc.be (Postfix, from userid 1000) id 934684033D; Wed, 11 Mar 2009 09:22:39 +0100 (CET) Received: from webmail.rocteur.com (localhost [127.0.0.1]) by incc.be (Postfix) with ESMTP id F2C644003F for ; Wed, 11 Mar 2009 09:22:38 +0100 (CET) Received: from 153.98.68.197 (SquirrelMail authenticated user jerry) by webmail.rocteur.com with HTTP; Wed, 11 Mar 2009 09:22:38 +0100 (CET) Message-ID: <57016.153.98.68.197.1236759758.squirrel@webmail.rocteur.com> Date: Wed, 11 Mar 2009 09:22:38 +0100 (CET) Subject: Strange escaped < > behaviour From: "Jerry Rocteur" To: zsh-users@sunsite.dk User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV 0.92.1/9089/Wed Mar 11 07:38:14 2009 on bifrost X-Virus-Status: Clean Hi, We have a bunch of scripts that work on KSH and PDKSH like this: echo ' ULOGPFX = "/ULOG"' | sed 's/.*\<\(.*\)\>.*/\1/' WORK_DIR Don't ask me why the escaped the < and > above but the scripts have been like this for a LONG LONG time! Now with ZSH I get this behaviour echo ' ULOGPFX = "/ULOG"' | sed 's/.*\<\(.*\)\>.*/\1/' ULOG The easy way to fix it is to remove the back slash in front of the < and > However this is VERY annoying. Why does the above give us ULOG and why does this differ from the KSH and PDKSH. Can someone please help me see why .. Thanks, Jerry