delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/24/17:09:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=bJ/k
yTSy29cywKPDQts6cPB8KaXj58IO+/wegwYNxBfeMz1dVwMSH8apzt0vt9S1sBEh
Z0PvjkCXXOfz+Kv5SIcnxixBDjdV36XgDDg+EC6DUbggLPwcKOHFN95f1/ZN2oI3
B7poIO9XBkaM8lR5sojdFvFaNrPxc8kxAxCn8zQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=aC2dKyecug
DGATrnwL7Ga/DyvUo=; b=BPfB/czlrPvkMSV2X8R/QVhH8YPy+Spjioj4n7XG8d
OcRFRtk5+BuebfqaKSIFyzkIvoHSNQeMj6SFuO3mJYEDDqbidlx0GaaSHL7WfZeu
GXSp7ADhMeU5nqbZb66hLaAjzjgvJzaw3uMpa9F9L7xaWr+u6t3cSbkhzNQhtyux
0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Subject: Re: bash-4.3.33-1 fails to execute shell script with CR+LF EOL in text-mounted directory
To: cygwin AT cygwin DOT com
References: <20150326153734 DOT 60517 DOT qmail AT mx DOT akamoz DOT jp>
From: Eric Blake <eblake AT redhat DOT com>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Message-ID: <5604667A.3030508@redhat.com>
Date: Thu, 24 Sep 2015 15:09:14 -0600
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>
X-IsSubscribed: yes

--ph0GoOIkqdaJ2dLxXt98cHHPBb6Ti2kll
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 03/26/2015 09:37 AM, smith AT cygwin DOT akamoz DOT 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"

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019