From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20390 invoked from network); 2 Aug 2000 10:29:31 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Aug 2000 10:29:31 -0000 Received: (qmail 27089 invoked by alias); 2 Aug 2000 10:29:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12482 Received: (qmail 27060 invoked from network); 2 Aug 2000 10:29:02 -0000 Date: Wed, 2 Aug 2000 12:28:50 +0200 (MET DST) Message-Id: <200008021028.MAA08524@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Peter Stephenson's message of Wed, 02 Aug 2000 10:51:29 +0100 Subject: Re: PATCH: Re: Open bugs and questions? Peter Stephenson wrote: > > % let "$foo[(I)(|\([^\)]#\))-bar(|[-+=])(|\[[^]]\])(|:*)]" > > zsh: bad math expression: operand expected at `)(|:*)]' > > % (( $foo[(I)(|\([^\)]#\))-bar(|[-+=])(|\[[^]]\])(|:*)] )) > > zsh: command not found: )(|:*)] > > % pat='(|\([^\)]#\))-bar(|[-+=])(|\[[^\]]\])(|:*)' > % (( $foo[(I)$~pat] )) > > I haven't tried this out because out of context I haven't the smallest idea > what it's supposed to be doing. Yes, I know. I wanted to avoid introducing an extra parameter just for the pattern. It's used to test if one of the options found in the --help output has a description in the user specified specs. I.e. the pattern should match option specs. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de