bugmake - Bugs: bug #29403, Make does not resolve backslashes

 
 

bug #29403: Make does not resolve backslashes

Submitted by:  None
Submitted on:  Thu 01 Apr 2010 04:54:06 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 01 Apr 2010 05:15:31 PM UTC, comment #1:

The new behavior is intended, and is required by the POSIX standard for make. Please see the NEWS file in the GNU make distribution and the GNU make manual for more details.

A simple fix is to put the backslashed text into a variable assignment then use that variable instead of the literal string: backslash/newlines within variable assignment still work as before.

Paul D. Smith <psmith>
Project Administrator
Thu 01 Apr 2010 04:54:06 PM UTC, original submission:

Hello Gnu Make Developers,

Here is my issue:

Makefile:

aaa:
@echo '\
system("echo HALLO"); \
'

# prints
% gmake aaa

\
system("echo HALLO"); \

This is wrong, the backslash-return (\\n) should have been
evaluated to a newline (\n)
Now gmake does not resolve the backslash and passes it to
calling program, which might not know what to do with it.
This works fine in make 3.80 and fails in make 3.81

% uname -a
Linux lna0918363.tif.ti.com 2.6.9-89.0.16.ELsmp #1 SMP Tue Oct 27 03:51:52 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

regards,
Walter Lavinop

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #20088:  makefile added by None (44B - text/plain - makefile )

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Apr 2010 05:15:31 PM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed
    Thu 01 Apr 2010 04:54:06 PM UTCNoneAttached File-=>Added makefile, #20088

    Back to the top


    Powered by Savane 3.1-cleanup1