Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Open bugs and questions?
- X-seq: zsh-workers 12482
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: Open bugs and questions?
- Date: Wed, 2 Aug 2000 12:28:50 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Wed, 02 Aug 2000 10:51:29 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author