This is the mail archive of the
mailing list for the Cygwin project.
Re: make, bash, or cygwin bug?
- To: cygwin at sourceware dot cygnus dot com, earnie_boyd at yahoo dot com
- Subject: Re: make, bash, or cygwin bug?
- From: "Kai Henningsen" <kai at cats dot ms>
- Date: Mon, 11 Oct 1999 12:49:22 +0200
- Organization: Spuentrup CTI
On 8 Oct 99, at 13:41, Earnie Boyd wrote:
> --- Glenn Spell <email@example.com> wrote:
> > On 8 Oct 1999 around 10:12AM (+0200) Kai Henningsen wrote:
> > > /bin/sh: \home\gcc-2.95.1\kai\gcc\cc1obj.exe^M: command not
> > > found
> > >
> > > Well, of course. But who told you to append a cr there?
> > >
> > > This Makefile line:
> > >
> > > CC1OBJ = `$(CC) -print-prog-name=cc1obj`
> > I suspect this is (again) a symptom of mixing mingw and cygwin.
> > The cygwin port of gcc-2.95 does not append the cr.
> > If you could figure out how to get 'cygpath' to print the
> > output instead of mingw-gcc, it would probably work. :-)
> Or, try SET CYGWIN=... nobinmode ... before starting bash. The [no]binmode
> switch controls the processing of the pipe and redirect fd's. If you modify
> this value after you start bash you effect the change only on pipes not redirects.
I happen to think this is the wrong type of fix. It's not piping in
general that should be done in text mode (because there can
certainly be binary data sent around in pipes - say, the pbm tools),
but parsing stuff like `` or $(shell ...) (where we _know_ we're
Typically, these places already have some way to handle '\n' so as
to make it work as white space. Under cygwin, this should
probably be extended to '\r'. (This way may well be that later
parsing routines handle '\n' like white space, not the place that
takes the output from a program. OTOH, I can see no reason why
parsing text should ever need to handle '\r' as something different
from white space, so doing this change should not result in
Regards - Kai Henningsen
Spuentrup CTI Fon: +49 251 322311 0
Windbreede 12 Fax: +49 251 322311 99
D-48157 Münster Mob: +49 161 3223111
Germany GSM: +49 171 7755060
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org