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

Re: [PATCH] Document the SHORT_LOOP 'function' syntax.



Bart Schaefer wrote on Sun, Mar 05, 2017 at 14:58:04 -0800:
> On Sun, Mar 5, 2017 at 2:10 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > It's already mentioned in passing in zshoptions(1).
> 
> This doesn't really belong with SHORT_LOOPS forms, though, because
> turning off the SHORT_LOOPS option doesn't change the behavior.

It does:

% function ; echo hello world 
hello world
% setopt noshortloops
% function ; echo hello world 
zsh: parse error near `echo'
% 



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