Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Soren A" , References: Subject: Re: retval of pipelined cmd in bash Date: Sat, 21 Dec 2002 00:30:57 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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. 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/