Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _arguments -n / $NORMARG (was: Re: [PATCH 1/2] __arguments: New completion function for _arguments.)
- X-seq: zsh-workers 48443
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: _arguments -n / $NORMARG (was: Re: [PATCH 1/2] __arguments: New completion function for _arguments.)
- Date: Fri, 09 Apr 2021 21:24:58 +0200
- Archived-at: <https://zsh.org/workers/48443>
- In-reply-to: <20210401223407.GG11180@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- References: <20210401000026.23570-1-danielsh@tarpaulin.shahaf.local2> <96182-1617281582.024669@4LIl.h-KW.lXZv> <20210401173305.GB11180@tarpaulin.shahaf.local2> <20210401223407.GG11180@tarpaulin.shahaf.local2>
On 1 Apr, Daniel Shahaf wrote:
> The manual doesn't already include such a warning, but I don't
> understand how exactly $NORMARG is broken, so I can't document that.
It'd be less effort to simply drop it from the documentation or mark it
strictly deprecated. It isn't particularly needed.
> Could you elaborate on what cases «_arguments -n», as implemented, would
> cause breakage in?
I can't remember the exact details, it was a while ago that I went over
the _arguments source code. But I think you can cause issues by having
optional arguments to options and not just sets - those also produce
multiple possible states. The field in castate was being misunderstood
in general. Sorry I realize I'm being a bit vague but I don't remember
the details sufficiently.
I think I intended to fixup each of the uses of the option first before
raising the issue but I never got around to that.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author