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

Re: if (()){}else{} documented?



On Wed, Apr 21, 2021 at 1:46 AM zzapper <zsh@xxxxxxxxxxxxxx> wrote:
>
> While playing golf I've noticed that the  'else' clause is particularly
> intolerant it needs '} else {'

Actually it only needs "} else", the next statement can appear on a
new line.  In fact the next statement doesn't even have to be enclosed
in braces.

I believe the only case where all three must be on the same line is
  } always {




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