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

Re: [PATCH] Completion: Improve _man (3)



Mikael Magnusson wrote on Fri, Jun 15, 2018 at 16:39:36 +0200:
> Please don't use () for 1 {} a b c style loops in actual scripts, it
> is not guaranteed to work. Instead, use () { for 1 { } } a b c which
> is the documented syntax.

Now that you mention it, I think completion functions may not use shortloops
syntax: compinit doesn't reset that option.

That _still_ leaves us with a «for 1» loop, which I'm not actually sure is a
documented syntax, but it's useful enough that I'd welcome a regression test
for it.

Cheers,

Daniel



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