bugmake - Bugs: bug #35231, Backward compatibility: Versions...

 
 

bug #35231: Backward compatibility: Versions prior to 3.81 allowed spaces in variable names

Submitted by:  None
Submitted on:  Tue 03 Jan 2012 11:48:26 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.82Operating 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.

 

Tue 03 Jan 2012 11:56:24 PM UTC, comment #1:

Hi; this issue is listed as a known backward-incompatibility in the NEWS file for GNU make 3.82.

Indeed, we intentionally removed support for spaces in variable names, to support new capabilities in future versions of GNU make.

Cheers!

Paul D. Smith <psmith>
Project Administrator
Tue 03 Jan 2012 11:48:26 PM UTC, original submission:

I ran across an ancient makefile previously used with gmake 3.74. The following idiom works on 3.81:

set something = something else

all:
@echo ${set something}

My guess is the 'set something' line is a carry-over from some even older build system; it didn't cause an error in make, so it was ignored.

Personally I'd be inclined to ditch allowing spaces in variable names, but in case there's a good reason to keep it around I figured I'd write it up.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 03 Jan 2012 11:56:24 PM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1