delorie.com/archives/browse.cgi | search |
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 <kilroyd AT googlemail DOT com> |
User-Agent: | Thunderbird 2.0.0.23 (X11/20091126) |
MIME-Version: | 1.0 |
To: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Bash process substitution |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |