bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash does not like DOS file format


From: Eric Blake
Subject: Re: Bash does not like DOS file format
Date: Mon, 10 Oct 2011 09:17:47 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110713 Thunderbird/5.0

On 10/05/2011 02:37 PM, Russ Browne wrote:
> Configuration Information [Automatically generated, do not change]:
> 
> Machine: i686
> 
> OS: cygwin
> 
> Compiler: gcc-4
> 
> Compilation CFLAGS:  -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
> -DCONF_OSTYPE='cygwin'

Given that you are trying to use cygwin, this may be a question better
asked on the cygwin lists.

>         I thought this must surely be a simple goof that would be fixed
> in the
> 
>         next release, but when I reloaded cygwin for my new PC late last
> year
> 
>         the bug was still there.

This is not a bug, but a conscious design decision.  In particular, the
cygwin port of bash intentionally behaves like Unix in treating CR as
literal characters (for speed and POSIX compliance reasons) unless you
take explicit measures to request that it ignore CR (your explicit
request is what allows bash to ignore POSIX).  Read the cygwin bash
release notes for more details on the measures you can take:

http://sourceware.org/ml/cygwin-announce/2011-02/msg00027.html

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]