This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why sh failed 'Process Substitution'?


Pan ruochen wrote:
> 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)'

  See the section "6.11 Bash POSIX Mode" in the bash info page, item 22:

>" 22. Process substitution is not available. "

    cheers,
      DaveK

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]