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

Re: syntactic trivia



On Sat, Jan 2, 2021 at 11:13 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
>   [[ stuff ]] && do-this  # Why did I do this? \
>     || do-that

Incidentally, you can do that specific example this way:

[[ stuff ]] && do-this && : "Why did I do this?" \
  || do-that

There's no nice way to do the ...|| ... && ... variant, though.




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