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: =?iso-8859-1?Q?Edgar_Fu=DF?= <ef%math.uni-bonn.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: toolchain/46750: make oddity expanding variables assigned to with
+=
Date: Sun, 29 Jul 2012 16:20:31 +0200
> This is the way make works.
Then either the first element (e.g. :[1]) should be empty or start with =
a space.
You currently get different results from
- asking for the whole value, which should be a space-separated list =
(you get " foo bar")
- asking explicitly for a space-separated list (you get "foo bar")
- asking for the individual elements and space-joining them (you get =
"foo bar")
> Whitespace after =3D (or :=3D) can be removed, but whitespace
> after +=3D must be kept - otherwise you can't build strings.
The manpage says (for all variants of assignments):
Any white-space before the assigned value is removed=
Home |
Main Index |
Thread Index |
Old Index