Re: RFC: Adding a check to the top level configure script for a binary-mounted cygwin-hosted build directory

Corinna Vinschen
2007-05-25T09:47:20Z

On May 24 11:42, DJ Delorie wrote:
>
> > Are the problems described in PR 4334 also present when building
> > under MinGW or DJGPP ? If not, then we can keep this new autoconf
> > test as a Cygwin specific test.
>
> I don't have a djgpp build tree at the moment, but djgpp is like
> *always* having text mounts. So, you can simulate it with a cygwin
> install where everything is text mounted. However, DJGPP's tools know
> about CR/LF so it may not expose this "bug".
>
> > If those problems are also present then I would agree with you that
> > we need to fix the binutils build process.
>
> IMHO the bug is that cygwin's bash isn't dealing with `` line endings
> properly. It's the responsibility of the shell to strip trailing line
> endings (1003.2-1992 3.6.3, although it doesn't mention
> platform-specific line endings) during command substitution.
>
> Also, cygwin's bash should allow CR/LF pairs as word delimiters during
> splitting, if it doesn't already. Cygwin supports mixed mounts, it
> needs to deal with the ramifications itself.

Does that actually happen with the latest bash? It should work fine
on textmode mounts. See
http://cygwin.com/ml/cygwin-announce/2007-05/msg00003.html for more
details on the way bash works with different input files and mounty
modes.

Eric? Can you confirm or deny this problem for the latest bash?

Corinna

--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat