MISPIPE(1)
π mispipe(1) π
from the moreutils friend group, fr fr β¨
β¨ NAME β¨
mispipe β pipes two commands together, then returns the exit status of the first one. Slay. π«Ά
πΈ SYNOPSIS πΈ
mispipe ["command1"] ["command2"]
π¦ DESCRIPTION π¦
okay so bestie, listen up. mispipe pipes two commands together just like the shell does. But unlike piping in the shell β which returns the exit status of the last command β mispipe returns the exit status of the first command. It's literally giving first-command main character energy, and I'm obsessed. π
β¨
Now, some shells, notably bash, do offer a pipefail option. But ngl, that option does not behave the same. Why? Because it makes a failure of any command in the pipeline get returned, not just the exit status of the first command. So it's a whole different vibe. ππ
β EXIT STATUS β
The exit status of the first command. If the process terminated abnormally (due to a signal), 128 will be added to its exit status. So if it got yeeted by a signal, add 128 to the number. ππ
bestie, that's 128 added to its exit status. Keep that in mind, iykyk. π₯
π AUTHOR π
Nathanael Nerode. iconic author moment, periodt. π
This page is from moreutils, dated 2006-09-07, and it's the MISPIPE(1) manual. Mwah π
π¦ where this page comes from
- debian bookworm: moreutils 0.67-1 Β· GPL-2.0-or-later
- debian trixie: moreutils 0.69-1 Β· GPL-2.0-or-later
- epel 10: moreutils 0.68-3.el10_0 Β· GPL-2.0-only
- epel 9: moreutils 0.68-1.el9 Β· GPLv2
- fedora 43: moreutils 0.68-5.fc43 Β· GPL-2.0-only
- fedora 44: moreutils 0.68-6.fc44 Β· GPL-2.0-only
- nixos 26.05: moreutils 0.70
- nixpkgs unstable: moreutils 0.70
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- ubuntu jammy: moreutils 0.66-1 Β· GPL-2.0-or-later
- ubuntu noble: moreutils 0.69-1 Β· GPL-2.0-or-later
- ubuntu questing: moreutils 0.69-1
- ubuntu resolute: moreutils 0.69-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: moreutils 0.70-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms