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

Re: empty pipes



On Sun, Dec 11, 2022 at 7:17 PM Ray Andrews <rayandrews@xxxxxxxxxxx> 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}.




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