From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18172 invoked from network); 20 Jun 2004 17:37:15 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 20 Jun 2004 17:37:15 -0000 Received: (qmail 9173 invoked from network); 20 Jun 2004 17:36:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jun 2004 17:36:46 -0000 Received: (qmail 19842 invoked by alias); 20 Jun 2004 17:36:29 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7569 Received: (qmail 19833 invoked from network); 20 Jun 2004 17:36:29 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 20 Jun 2004 17:36:26 -0000 Received: (qmail 8410 invoked from network); 20 Jun 2004 17:36:26 -0000 Received: from lakermmtao09.cox.net (68.230.240.30) by a.mx.sunsite.dk with SMTP; 20 Jun 2004 17:36:24 -0000 Received: from quark.hightek.org ([68.12.75.33]) by lakermmtao09.cox.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040620173557.KVEM12076.lakermmtao09.cox.net@quark.hightek.org> for ; Sun, 20 Jun 2004 13:35:57 -0400 Received: by quark.hightek.org (Postfix, from userid 501) id 679D912422; Sun, 20 Jun 2004 12:36:08 -0500 (CDT) Date: Sun, 20 Jun 2004 12:36:08 -0500 From: Vincent Stemen To: zsh-users@sunsite.dk Subject: Re: pcre module help Message-ID: <20040620173608.GA38615@quark.hightek.org> References: <20040620144844.GA24131@scowler.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040620144844.GA24131@scowler.net> User-Agent: Mutt/1.4.1i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 On Sun, Jun 20, 2004 at 10:48:44AM -0400, Clint Adams wrote: > > if [[ $variable == pcre ]] ; then > > blah > > fi > > At this point, you have two options: > > 1) > pcre_compile pcre > if pcre_match $variable; then > blah > fi > > 2) > if [[ $variable -pcre-match pcre ]]; then > blah > fi > > If these don't fit your needs, let us know. Hi. I tried this under zsh-4.2.0 on FreeBSD with the zsh module statically linked in. Method 1) # pcre_compile "^/.*local" pcre_compile: not available on this system # if pcre_match $PATH; then echo "matched"; fi pcre_match: not available on this system Method 2) # if [[ $PATH -pcre-match '^/.*local' ]]; then echo "matched"; fi zsh: unrecognized condition: `$PATH' # pcre_compile "^/.*local" pcre_compile: not available on this system # if [[ $PATH -pcre-match '^/.*local' ]]; then echo "matched"; fi -- shell crashes leaving a core file -- The shell crashing is consistent when I try to use -pcre-match after attempting to run pcre_compile. Also, the -pcre-match method is not mentioned in the zshmodules manual. Regards, Vincent -- Vincent Stemen Avoid the VeriSign/Network Solutions domain registration trap! Read how Network Solutions (NSI) was involved in stealing our domain name. http://www.InetAddresses.net