From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: syntactic trivia
Date: Sat, 2 Jan 2021 11:40:46 -0800 [thread overview]
Message-ID: <CAH+w=7bX=+q5UMe9q4bj9Jk8x80ckM_edf6x7J2Vgk3wvuVC9g@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7ZjJXD24wYEKrkv_ojkgVdCi4QtywJ3qK3XmWG+vb5juw@mail.gmail.com>
On Sat, Jan 2, 2021 at 11:13 AM Bart Schaefer <schaefer@brasslantern.com> 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.
next prev parent reply other threads:[~2021-01-02 19:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-02 14:57 Ray Andrews
2021-01-02 15:30 ` Stephane Chazelas
2021-01-02 17:49 ` Ray Andrews
2021-01-02 18:05 ` Bart Schaefer
2021-01-02 18:23 ` Ray Andrews
2021-01-02 18:32 ` Bart Schaefer
2021-01-02 15:32 ` Stephane Chazelas
2021-01-02 18:04 ` Ray Andrews
2021-01-02 19:13 ` Bart Schaefer
2021-01-02 19:40 ` Bart Schaefer [this message]
2021-01-04 5:34 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7bX=+q5UMe9q4bj9Jk8x80ckM_edf6x7J2Vgk3wvuVC9g@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).