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

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



Le Wed, Apr 21, 2021 at 01:32:00PM +0100, zzapper a écrit :
> On 21/04/2021 11:41, Marc Chantreux wrote:
> > this does not echoes what you expected:)
> >      if {true} {echo ok}else {echo nope}
> I'd come across this when I was tying myself up in knots it's quite logical
> really when you think about it LOL

i don't think so :) i guess this behavior isn't intentional at the
begining but stay there because of retrocompatibility.

regards





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