| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <00e901c2a888$439d34f0$8674883e@pomello> |
| From: | "Max Bowsher" <maxb AT ukf DOT net> |
| To: | "Soren A" <soren_andersen AT fastmail DOT fm>, <cygwin AT cygwin DOT com> |
| References: | <Xns92EAAAF9FCFDBsorenagmaneSH AT 80 DOT 91 DOT 224 DOT 249> |
| Subject: | Re: retval of pipelined cmd in bash |
| Date: | Sat, 21 Dec 2002 00:30:57 -0000 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
Soren A <soren_andersen AT fastmail DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |