NetBSD-Bugs archive

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

Re: toolchain/46750



The following reply was made to PR toolchain/46750; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/46750
Date: Tue, 10 May 2022 15:41:06 +0700

     Date:        Tue, 10 May 2022 00:25:01 +0000 (UTC)
     From:        Roland Illig <roland.illig%gmx.de@localhost>
     Message-ID:  <20220510002501.C1E6E1A923C%mollari.NetBSD.org@localhost>
 
   |   > |  Which bmake fourtunately doesn't adhere to. I doubt you want
   |   > |  	foo=3Dbar	# see section 47.11
   |   > |  to assign trailing whitespace to foo.
   |   >
   |   > Yet gmake and smake both do include it.
   |  =
 
   |  They don't. All of bmake, gmake and smake discard the whitespace
   |  between 'bar' and '#'.
 
 Really??   Given /tmp/mf containing:
 
 
 FOO=3DText      # and a comment
 
 all:
 	printf '<%s>\n' '$(FOO)'
 
 
 (4 lines, first line is FOO=3D  Last line is printf)
 
 What I see is (this is NetBSD so "make" is bmake):
 
 jinx$ make -f /tmp/mf
 printf '<%s>\n' 'Text'
 <Text>
 jinx$ gmake -f /tmp/mf
 printf '<%s>\n' 'Text      '
 <Text      >
 jinx$ smake -f /tmp/mf
 ...printf '<%s>\n' 'Text      '
 <Text      >
 jinx$ gmake --version
 GNU Make 4.1
 Built for x86_64--netbsd
 [noise deleted]
 jinx$ smake --version
 Smake release 1.3 2020/03/30 (amd64-unknown-netbsd9.99.74) Copyright (C) 1=
 985, 87, 88, 91, 1995-2020 J=EF=BF=BDg Schilling
   =
 
   |  Even though POSIX requires that the macro value includes trailing
   |  whitespace,
 
 POSIX requires it because that is what other make versions do.
 Not necessarily because anyone finds it particularly desireable.
 
 It is possible that later gmake (and less likely, smake) might
 have changed thus, but as tgat would break backwards compat
 and make them drop out of conformance in this area, I somehow
 doubt it.
 
 kre
 


Home | Main Index | Thread Index | Old Index