From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: Re: Open bugs and questions?
Date: Wed, 2 Aug 2000 12:28:50 +0200 (MET DST) [thread overview]
Message-ID: <200008021028.MAA08524@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Wed, 02 Aug 2000 10:51:29 +0100
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
next reply other threads:[~2000-08-02 10:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-02 10:28 Sven Wischnowsky [this message]
2000-08-02 11:43 ` patterns in subscripts Andrej Borsenkow
-- strict thread matches above, loose matches on Subject: below --
2000-08-03 13:32 PATCH: Re: Open bugs and questions? Sven Wischnowsky
2000-08-03 7:49 Sven Wischnowsky
2000-08-02 9:40 Sven Wischnowsky
2000-08-02 9:51 ` Peter Stephenson
2000-08-03 13:14 ` Andrej Borsenkow
2000-08-02 9:03 Sven Wischnowsky
2000-08-02 9:20 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200008021028.MAA08524@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).