From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3179 invoked from network); 8 May 2008 08:48:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 May 2008 08:48:39 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 45253 invoked from network); 8 May 2008 08:48:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 May 2008 08:48:28 -0000 Received: (qmail 20541 invoked by alias); 8 May 2008 08:48:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24973 Received: (qmail 20522 invoked from network); 8 May 2008 08:48:24 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 8 May 2008 08:48:24 -0000 Received: from incc.be (incc.rocteur.com [65.99.212.71]) by bifrost.dotsrc.org (Postfix) with ESMTP id C1F2F80ED173 for ; Thu, 8 May 2008 10:48:20 +0200 (CEST) Received: by incc.be (Postfix, from userid 1000) id 42FED4050F; Thu, 8 May 2008 08:48:14 +0000 (UTC) Received: from webmail.rocteur.com (localhost [127.0.0.1]) by incc.be (Postfix) with ESMTP id 6EF2040509 for ; Thu, 8 May 2008 08:48:13 +0000 (UTC) Received: from 153.98.68.197 (SquirrelMail authenticated user jerry) by webmail.rocteur.com with HTTP; Thu, 8 May 2008 10:48:13 +0200 (CEST) Message-ID: <30735.153.98.68.197.1210236493.squirrel@webmail.rocteur.com> Date: Thu, 8 May 2008 10:48:13 +0200 (CEST) Subject: Regexp type pattern matching From: "Jerry Rocteur" To: zsh-workers@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.91.2/7060/Thu May 8 08:07:49 2008 on bifrost X-Virus-Status: Clean Hi, I'm runnign a script under Zsh 4.2.6 on Redhat I'm spawning an egrep to do pattern matching: if echo ${USER_NAME}|egrep -q "^[prt][0-9]" But after a while this stops working and I get: rt_sigsuspend(~[HUP CHLD RTMIN RT_1] >From testing it happens after losts of spawning (The above script never failes under ksh). I've tried to find examples but how do I do this pattern matching in zsh without using egrep: if echo ${USER_NAME}|egrep -q "^[prt][0-9]" I find lots of examples of pattern matching on files but how do i do the above in zsh with using egrep or perl etc. ? Thanks in advance, jerry