[Top][All Lists]

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

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

From: Paul D. Smith
Subject: Re: Problem with backslash/newline on DOS/Windows/OS2/etc.?
Date: Tue, 12 Jul 2005 15:01:33 -0400

%% Eli Zaretskii <address@hidden> writes:

  ez> Yes, I think testing unixy_shell would be okay.

Good stuff; so if !unixy_shell we want to go back to the old model,
where make would eat the backslash-newline pair before invoking the
shell, right?

What about the TAB on the next line?  In POSIX if the first character
after a backslash-newline is a TAB, make will remove it from the command
script to be invoked.

The other change between the old behavior and new behavior was that make
used to replace the backslash-newline with a space.  So, if you had

    echo foo\

would print "foo bar".  In POSIX, no whitespace is added so this
would print "foobar".

I like the POSIX way better but it's not backward-compatible so it's up
to you guys.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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