logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mispipe - pipe two commands, returning the exit status of the first

Author

       Nathanael Nerode

moreutils                                          2006-09-07                                         MISPIPE(1)

Description

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.

Name

       mispipe - pipe two commands, returning the exit status of the first

Synopsis

mispipe ["command1"] ["command2"]

See Also