carta
mispipe(1)

mispipe1

Pipe two commands, returning the exit status of the first

Usage

mispipe ["command1"] ["command2"]

Overview

mispipe pipes two commands together like the shell does, but unlike piping in the shell, which returns the exit status of the last command; when using mispipe, the exit status of the first command is returned.

Note that some shells, notably bash, do offer a pipefail option, however, that option does not behave the same since it makes a failure of any command in the pipeline be returned, not just the exit status of the first.

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.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie) to Debian 11 (Bullseye)
  • Debian 10 (Buster) to Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy) to Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)

Author

Nathanael Nerode

From moreutils 0.70-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.