This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Why sh failed 'Process Substitution'?
- From: Pan ruochen <panruochen at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 9 Jun 2009 14:47:35 +0800
- Subject: Why sh failed 'Process Substitution'?
Hi All,
Why sh failed to recognize Process Substitution, even if /bin/sh.exe
is a copy of /bin/bash.exe?
$cat test.sh
#!/bin/bash
A="A"
B="B"
diff <(echo $A) <(echo $B)
$sh test.sh
a.sh: line 4: syntax error near unexpected token `('
a.sh: line 4: `diff <(echo $A) <(echo $B)'
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/