Similar Bash 3.1.18 CR/LF Problem

Eric Blake
Sat Sep 30 15:42:00 GMT 2006

Hash: SHA1

According to mwoehlke on 9/29/2006 12:14 PM:
> Wilks, Dan wrote:
>> So we just got the short-end?  A long(?) standing behavior of cygwin
>> and DOS paths and a recent change to bash that eliminates support for
>> \r's.  I guess we were living on the edge of something that wasn't
>> supposed to work at all and didn't even know it.  :/
>> We'll try to figure out some workaround for our environment.  I just
>> wish going "pure cygwin" was an option.
> Well, as we like to say here, Since
> Eric is currently amenable to adding a shopt to bash, you have the
> option of implementing it yourself and submitting the patch for upstream
> consideration.

I also mentioned that I am toying with the idea of a cygwin-specific patch
that converts all script path to posix before opening them (a'la
cygwin_conv_to_full_posix_path in <sys/cygwin.h>); at which point DOS
paths to a text mode mount would inherit text mode behavior, but DOS paths
to a binary mode mount would still remain binary.  At any rate, I hope to
post bash-3.1-9 next week with something a little nicer for ignoring \r
and working with DOS paths, without too much of a penalty to people like
me that avoid \r and use POSIX paths at all costs in the first place.

- --
Life is short - so eat dessert first!

Eric Blake   
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list