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 48451
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: _arguments -n / $NORMARG (was: Re: [PATCH 1/2] __arguments: New completion function for _arguments.)
- Date: Fri, 9 Apr 2021 22:52:38 +0000
- Archived-at: <https://zsh.org/workers/48451>
- In-reply-to: <81257-1617996298.439634@WyT_.pTdt.VYqg>
- 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> <81257-1617996298.439634@WyT_.pTdt.VYqg>
Oliver Kiddle wrote on Fri, Apr 09, 2021 at 21:24:58 +0200:
> On 1 Apr, Daniel Shahaf wrote:
> > 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.
>
> > 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.
Well, I'm not fond of documenting problems from memory, but
a deprecation notice would probably be useful to readers, so no
objections from me to doing that.
Thanks,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author