Bash process substitution

Dave kilroyd@googlemail.com
Fri Jan 22 19:10:00 GMT 2010


Is process substitution expected to work in 1.7.1?

Here's what I tried:

kilroyd@MINIME ~
$ uname -a
CYGWIN_NT-5.1 MINIME 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin

kilroyd@MINIME ~
$ echo LOG:bananas | tee file.txt
LOG:bananas

kilroyd@MINIME ~
$ cat file.txt
LOG:bananas

kilroyd@MINIME ~
$ echo LOG:bananas | tee >(grep "^LOG:" > file.txt)
LOG:bananas
tee: /dev/fd/63: Bad file descriptor

kilroyd@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



More information about the Cygwin mailing list