Article View: gnu.utils.bug
Article #788Possible bug in GNU make
From: Cis Administrator
Date: Thu, 10 Sep 1992 21:01
Date: Thu, 10 Sep 1992 21:01
27 lines
1262 bytes
1262 bytes
GNU make 3.58 seems not to ignore trailing white space when a variable definition is followed by a comment. For example, with the makefile ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ var = this is a test # a variable definition, followed by a comment show: @echo "'$(var)'" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ the command "make show" produces the output 'this is a test ' I was expecting 'this is a test' That's what the SUN version of make produces, and it's what page 53 of the GNU make manual (Edition 0.26 Beta, 1/20/1990) seems to suggest: "A variable name may be any sequence [of] characters not containing `:', `#', `=', or leading or trailing whitespace." (The word "of" is missing in the manual.) Is this a bug, or a feature?
Technical Details
Message-ID:
<9209102101.AA03215@galton.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!galton.uchicago.edu!cisShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!galton.uchicago.edu!cis From: cis@galton.uchicago.edu (Cis Administrator) Subject: Possible bug in GNU make Message-ID: <9209102101.AA03215@galton.uchicago.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 10 Sep 1992 21:01:02 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 28