X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B59F278.2090902@gmail.com> Date: Fri, 22 Jan 2010 18:46:16 +0000 From: Dave User-Agent: Thunderbird 2.0.0.23 (X11/20091126) MIME-Version: 1.0 To: cygwin Subject: Bash process substitution Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Is process substitution expected to work in 1.7.1? Here's what I tried: kilroyd AT MINIME ~ $ uname -a CYGWIN_NT-5.1 MINIME 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin kilroyd AT MINIME ~ $ echo LOG:bananas | tee file.txt LOG:bananas kilroyd AT MINIME ~ $ cat file.txt LOG:bananas kilroyd AT MINIME ~ $ echo LOG:bananas | tee >(grep "^LOG:" > file.txt) LOG:bananas tee: /dev/fd/63: Bad file descriptor kilroyd AT MINIME ~ $ cat file.txt --- I'm actually trying to do something like: socat - /dev/ttyS0,raw,echo=0 | tee \ >(grep "^LOG:" --line-buffered | socat - UDP:localhost:1234) but am getting the same error as the simpler example. And if anyone knows whether STDIN would make it out of /dev/ttyS0, (or how to get that) I'd appreciate the hint. Thanks, Dave. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple