Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: syntactic trivia
- X-seq: zsh-users 26301
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: syntactic trivia
- Date: Sat, 2 Jan 2021 11:40:46 -0800
- Archived-at: <https://zsh.org/users/26301>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/CAH%2Bw%3D7bX%3D%2Bq5UMe9q4bj9Jk8x80ckM_edf6x7J2Vgk3wvuVC9g%40mail.gmail.com>
- In-reply-to: <CAH+w=7ZjJXD24wYEKrkv_ojkgVdCi4QtywJ3qK3XmWG+vb5juw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <565cd2e7-c999-5735-4089-a56870713432@eastlink.ca> <20210102153217.xkpqakxgh7ulikqr@chazelas.org> <f1eb20ff-3010-7a8e-7e3f-2523642e84b2@eastlink.ca> <CAH+w=7ZjJXD24wYEKrkv_ojkgVdCi4QtywJ3qK3XmWG+vb5juw@mail.gmail.com>
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