mirror of
https://git.freebsd.org/ports.git
synced 2025-05-27 16:36:28 -04:00
47 lines
2 KiB
Groff
47 lines
2 KiB
Groff
'\" t
|
|
.\" Title: mispipe
|
|
.\" Author: Nathanael Nerode
|
|
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
.\" Date: 2006-09-07
|
|
.\" Manual: moreutils
|
|
.\" Source: moreutils
|
|
.\" Language: English
|
|
.\"
|
|
.TH "MISPIPE" "1" "2006\-09\-07" "moreutils" "moreutils"
|
|
.\" -----------------------------------------------------------------
|
|
.\" * Define some portability stuff
|
|
.\" -----------------------------------------------------------------
|
|
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
.\" http://bugs.debian.org/507673
|
|
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
.ie \n(.g .ds Aq \(aq
|
|
.el .ds Aq '
|
|
.\" -----------------------------------------------------------------
|
|
.\" * set default formatting
|
|
.\" -----------------------------------------------------------------
|
|
.\" disable hyphenation
|
|
.nh
|
|
.\" disable justification (adjust text to left margin only)
|
|
.ad l
|
|
.\" -----------------------------------------------------------------
|
|
.\" * MAIN CONTENT STARTS HERE *
|
|
.\" -----------------------------------------------------------------
|
|
.SH "NAME"
|
|
mispipe \- pipe two commands, returning the exit status of the first
|
|
.SH "SYNOPSIS"
|
|
.HP \w'\fBmispipe\fR\ 'u
|
|
\fBmispipe\fR [\fI"command1"\fR] [\fI"command2"\fR]
|
|
.SH "DESCRIPTION"
|
|
.PP
|
|
\fBmispipe\fR
|
|
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\&.
|
|
.PP
|
|
Note that some shells, notably
|
|
\fBbash\fR, 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\&.
|
|
.SH "EXIT STATUS"
|
|
.PP
|
|
The exit status of the first command\&. If the process terminated abnormally (due to a signal), 128 will be added to its exit status\&.
|
|
.SH "AUTHOR"
|
|
.PP
|
|
Nathanael Nerode
|