MISPIPE(1)

πŸ“¦
version 0.70 Β· 3 versions
  • 0.70 Β· debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.70 Β· alpine 3.24
  • 0.70 Β· arch rolling
, in debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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