From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: flex -<TAB>
Date: Fri, 4 Feb 2000 10:43:11 +0100 (MET) [thread overview]
Message-ID: <200002040943.KAA22559@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Alexandre Duret-Lutz's message of 04 Feb 2000 10:30:39 +0100
Alexandre Duret-Lutz wrote:
> >>> "Tanaka" == Tanaka Akira <akr@jaist.ac.jp> writes:
>
> Tanaka> Z(2):akr@is27e1u11% Src/zsh -f
> Tanaka> is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> Tanaka> is27e1u11% flex -<TAB>
> Tanaka> - -- generate C++ scanner class
> Tanaka> -7 -- generate 7-bit scanner
> Tanaka> ...
>
> Tanaka> The option `+' isn't displayed.
>
> I think this is since 9216. The character just after `-' in an argument
> definition was not checked before, but now it is. And since `+' has a
> special meaning for _arguments, perhaps the cleaner way to correct this is
> to escape it.
I think we better document this.
Bye
Sven
diff -ru ../z.old/Doc/Zsh/compsys.yo Doc/Zsh/compsys.yo
--- ../z.old/Doc/Zsh/compsys.yo Fri Feb 4 09:53:48 2000
+++ Doc/Zsh/compsys.yo Fri Feb 4 10:42:17 2000
@@ -2084,7 +2084,10 @@
and no other argument specification may be given after it.
In the simplest form the var(opt-spec) is just the option name
-beginning with a minus or a plus sign, such as `tt(-foo)'. In this
+beginning with a minus or a plus sign, such as `tt(-foo)'. If the
+command accepts the option both with a leading minus and a plus sign,
+one can use either tt(-+foo) or tt(+-foo) to define both options at
+once. In this
case, the first argument for the option (if any) has to come as a
separate word directly after the option and the option may appear only
once on the line (and if it is already on the line, the option name
@@ -2097,6 +2100,10 @@
instead. If the argument may be given as the next string or in same
string as the option name but separated from it by an equal sign, a
`tt(=)' should be used instead of the minus or plus sign.
+
+Note that this and the shortcut syntax with a leading tt(-+) or tt(+-)
+means that for options like tt(-+) the second character has to be
+quoted with a backslash.
If the option may be given more than once, a star
(`tt(*)') has to be added in front of the var(opt-spec).
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-02-04 9:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-04 9:43 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-02-03 19:14 _arguments problems Tanaka Akira
2000-02-04 6:12 ` flex -<TAB> Tanaka Akira
2000-02-04 9:30 ` Alexandre Duret-Lutz
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=200002040943.KAA22559@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).