NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/46750 (make oddity expanding variables assigned to with +=)
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 (make oddity expanding variables assigned to with +=)
Date: Thu, 07 Apr 2022 22:56:38 +0700
Date: Thu, 7 Apr 2022 14:25:02 +0000 (UTC)
From: Edgar =?iso-8859-1?B?RnXf?= <ef%math.uni-bonn.de@localhost>
Message-ID: <20220407142502.4D98E1A923B%mollari.NetBSD.org@localhost>
| Which bmake fourtunately doesn't adhere to. I doubt you want
| foo= bar # see section 47.11
| to assign trailing whitespace to foo.
Yet gmake and smake both do include it.
On the other hand while with
foo=
foo += data #comment
all:
printf '<%s>\n' "$(foo)"
gmake (like bmake) inserts a leading space from the += smake
doesn't.
kre
Home |
Main Index |
Thread Index |
Old Index