This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: retval of pipelined cmd in bash


Soren A <soren_andersen@fastmail.fm> 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.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]