bash-4.3.33-1 fails to execute shell script with CR+LF EOL in text-mounted directory

Eric Blake eblake@redhat.com
Thu Sep 24 21:09:00 GMT 2015


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150924/9c536da3/attachment.sig>


More information about the Cygwin mailing list