retval of pipelined cmd in bash

Max Bowsher
Fri Dec 20 20:05:00 GMT 2002

Soren A <> wrote:

> Does anyone know how to do this -- how to pull out a return value
> from a command in the middle of a pipeline?

Bash has a builtin array variable PIPESTATUS.

There are also some horrible file descriptor manipulation recipes out there
for other shells, if you search.


Unsubscribe info:
Bug reporting:

More information about the Cygwin mailing list