home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / utils / bug / 1540 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.2 KB  |  41 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!galton.uchicago.edu!cis
  3. From: cis@galton.uchicago.edu (Cis Administrator)
  4. Subject: Possible bug in GNU make
  5. Message-ID: <9209102101.AA03215@galton.uchicago.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 10 Sep 1992 21:01:02 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 28
  12.  
  13. GNU make 3.58 seems not to ignore trailing white space when a variable
  14. definition is followed by a comment. For example, with the makefile
  15.  
  16. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  17.  
  18. var = this is a test     # a variable definition, followed by a comment
  19. show:
  20.     @echo "'$(var)'"
  21.  
  22. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  23.  
  24. the command "make show" produces the output
  25.  
  26. 'this is a test     '
  27.  
  28.  
  29. I was expecting 
  30.  
  31. 'this is a test'
  32.  
  33. That's what the SUN version of make produces, and it's what page 53 of
  34. the GNU make manual (Edition 0.26 Beta, 1/20/1990) seems to suggest: 
  35. "A variable name may be any sequence [of] characters not containing `:', 
  36. `#', `=', or leading or trailing whitespace." (The word "of" is missing
  37. in the manual.)
  38.  
  39. Is this a bug, or a feature?
  40.  
  41.