make-w32
[Top][All Lists]
Advanced

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

Re: Problem with backslash/newline on DOS/Windows/OS2/etc.?


From: Eli Zaretskii
Subject: Re: Problem with backslash/newline on DOS/Windows/OS2/etc.?
Date: Fri, 08 Jul 2005 12:54:22 +0200

> Date: Thu, 7 Jul 2005 16:16:17 -0400
> Cc: address@hidden
> From: "Paul D. Smith" <address@hidden>
> 
> So for example, if you had a rule like this:
> 
>         echo foo \
> bar
> 
> then make would compress the backslash newline for you and it would
> actually exec something like (again, pretend there's no fast path):
> 
>     $(SHELL) -c 'echo foo bar'
> 
> 
> After this change, and according to POSIX, that's not how make is
> supposed to work.  Make is supposed to preserve the backslash-newline
> and hand it over to the shell, and let the _shell_ deal with it.

In that case, I think this feature needs to be turned off on non-Posix
platforms.  It will never work reliably; with most shells available on
Windows, it will simply fail, AFAIK.  At the very least, it should be
turned off when the shell is not a Unixy shell.




reply via email to

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