X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A2E290B.6040809@gmail.com>
Date: Tue, 09 Jun 2009 10:19:07 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Why sh failed 'Process Substitution'?
References: <af0faace0906082347h42f0a93btd302002dc7288ee4@mail.gmail.com>
In-Reply-To: <af0faace0906082347h42f0a93btd302002dc7288ee4@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

