From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: empty pipes
Date: Sun, 11 Dec 2022 19:17:38 -0800 [thread overview]
Message-ID: <c98a568d-c1e6-46a8-9b46-9c4ee37dba38@eastlink.ca> (raw)
Is there some way of asking zsh to ignore an empty pipe? I attempted
something like this:
print $string | $filter | $another_filter
... and it won't accept the filter being empty but sometimes I want the
filtering and sometimes not. There's other ways to do it of course, but
the above would be cool it it could be made to work.
next reply other threads:[~2022-12-12 3:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 3:17 Ray Andrews [this message]
2022-12-12 3:40 ` Bart Schaefer
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=c98a568d-c1e6-46a8-9b46-9c4ee37dba38@eastlink.ca \
--to=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).