Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Minor bug(s) with NO_MULTI_FUNC_DEF



On Thu, Jun 2, 2022 at 3:47 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Devil's advocate: letting this syntax bypass the NO_MULTI_FUNC_DEF check
> would break the invariant that «foo bar baz qux» and «foo {bar,baz} qux»
> are always equivalent.

We're not considering «foo {bar,baz} qux» here, rather
«foo{bar,baz}qux» (the spacing is important).  The latter results in
«foobarqux foobazqux».

> So, if we document it, I'd rather it were documented as "This may change
> in the future" than as a feature.

I don't have an opinion about that, but as long as the check is done
by counting parser words it's not going to change.




Messages sorted by: Reverse Date, Date, Thread, Author