public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: cygwin@cygwin.com
Subject: Re: bash-4.3.33-1 fails to execute shell script with CR+LF EOL in text-mounted directory
Date: Thu, 24 Sep 2015 21:09:00 -0000	[thread overview]
Message-ID: <5604667A.3030508@redhat.com> (raw)
In-Reply-To: <20150326153734.60517.qmail@mx.akamoz.jp>

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

On 03/26/2015 09:37 AM, smith@cygwin.akamoz.jp wrote:
> Dear Cygwin developers:
> 
>  It seems that bash-4.3.33(1) handles CR+LF end-of-line in 
> the shell-script incorrectly, all of the following conditions are met:
> 
> 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)
> 
> 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.
> 

Please try the (currently-experimental) 4.3.42-4, which should fix the
issues observed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

      parent reply	other threads:[~2015-09-24 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 15:38 smith
2015-03-26 19:05 ` Eric Blake
2015-03-27 20:00 ` smith
2015-09-24 21:09 ` Eric Blake [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5604667A.3030508@redhat.com \
    --to=eblake@redhat.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).