From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120701 invoked by alias); 24 Sep 2015 21:09:18 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 120685 invoked by uid 89); 24 Sep 2015 21:09:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 24 Sep 2015 21:09:17 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id DF16EAED6E for ; Thu, 24 Sep 2015 21:09:15 +0000 (UTC) Received: from [10.3.113.141] (ovpn-113-141.phx2.redhat.com [10.3.113.141]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8OL9FIw027063 for ; Thu, 24 Sep 2015 17:09:15 -0400 Subject: Re: bash-4.3.33-1 fails to execute shell script with CR+LF EOL in text-mounted directory To: cygwin@cygwin.com References: <20150326153734.60517.qmail@mx.akamoz.jp> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <5604667A.3030508@redhat.com> Date: Thu, 24 Sep 2015 21:09:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150326153734.60517.qmail@mx.akamoz.jp> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ph0GoOIkqdaJ2dLxXt98cHHPBb6Ti2kll" X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00437.txt.bz2 --ph0GoOIkqdaJ2dLxXt98cHHPBb6Ti2kll Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 900 On 03/26/2015 09:37 AM, smith@cygwin.akamoz.jp wrote: > Dear Cygwin developers: >=20 > It seems that bash-4.3.33(1) handles CR+LF end-of-line in=20 > the shell-script incorrectly, all of the following conditions are met: >=20 > a. the shell-script file is on TEXT-MOUNTED directory, > b. end-of-line style of the file is CR+LF, and > c. the command in the file includes & (exec-background), > $( ), or `` (command substitutions) >=20 > It works: > d. it is on the binary-mounted directory, and with igncr shell-option, > e. end-of-line style is LF, or > f. condition c is not met. It seems that &&, | and || work fine, > although I didn't try all of the metachacters and control-constructs. >=20 Please try the (currently-experimental) 4.3.42-4, which should fix the issues observed. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --ph0GoOIkqdaJ2dLxXt98cHHPBb6Ti2kll Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWBGZ6AAoJEKeha0olJ0Nq2JkIAJLBCLepsQ0TbO4LJuL2MZdo xzSG7qKzPOW4npzJOowCY4nr+knKd6D+HshChyDCZJliqhdtC7fxg02SCMNmaJGf kBDD3y/HsrBdBf4J0j0qMqW/lR2cgg/cgwL48G26JVsGtRpJx+y7XCXS3sXistyR gIBhUgSOBwD+o7MkhDFCXOQNTCBRX48f4OQqdArx/L644mwP5s6AQrR2jyjHoI+Y q08Z36Cr2U4ScOaKUH5yfxmr7WJCoGfCn1wuf4H/SNjNo2UdN9+pD1UZspTufaQ0 adf9zTq8CtB83yXQ19d95Dho/xcBG66Io2omJDNYuXR44Nr10wThk+Xs/XmSAFc= =KSax -----END PGP SIGNATURE----- --ph0GoOIkqdaJ2dLxXt98cHHPBb6Ti2kll--