From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: empty pipes
Date: Sun, 11 Dec 2022 19:40:06 -0800 [thread overview]
Message-ID: <CAH+w=7YcQ7-QbTvZLjk3=hCKweasrXJxwO6y8vZzaUGrvxjteA@mail.gmail.com> (raw)
In-Reply-To: <c98a568d-c1e6-46a8-9b46-9c4ee37dba38@eastlink.ca>
On Sun, Dec 11, 2022 at 7:17 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> Is there some way of asking zsh to ignore an empty pipe?
No.
> print $string | $filter | $another_filter
>
> ... and it won't accept the filter being empty
That's why you have e.g. ${filter:-cat}.
next prev parent reply other threads:[~2022-12-12 3:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 3:17 Ray Andrews
2022-12-12 3:40 ` Bart Schaefer [this message]
2022-12-12 14:01 ` Ray Andrews
2022-12-13 2:04 ` Bart Schaefer
2022-12-14 13:05 ` Are there zsh error message explanation Xiao Ling XL Chen
2022-12-15 21:18 ` Daniel Shahaf
2022-12-16 3:28 ` Bart Schaefer
2022-12-16 3:53 ` Ray Andrews
2022-12-16 4:07 ` Bart Schaefer
2022-12-16 14:16 ` Ray Andrews
2022-12-16 12:47 ` Daniel Shahaf
2022-12-16 14:00 ` Ray Andrews
2022-12-16 1:17 ` empty pipes Ellenor Bjornsdottir
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=7YcQ7-QbTvZLjk3=hCKweasrXJxwO6y8vZzaUGrvxjteA@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).