Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jul 2020 16:44:39 +0200
From:      Pau Amma <pauamma@gundo.com>
To:        freebsd-ports@freebsd.org
Cc:        Carmel <carmel_ny@outlook.com>
Subject:   Re: Updating py27-* ports
Message-ID:  <7aba543106af7b27ead61297c36d5e56@gundo.com>
In-Reply-To: <SN6PR04MB5021BB245E309923806D961C806B0@SN6PR04MB5021.namprd04.prod.outlook.com>
References:  <SN6PR04MB5021E56AE4FEFA36FE59E7E9806B0@SN6PR04MB5021.namprd04.prod.outlook.com> <20200704141129.GH39563@home.opsec.eu> <SN6PR04MB5021BB245E309923806D961C806B0@SN6PR04MB5021.namprd04.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-07-04 16:30, Carmel wrote:
> What I have never been able to get a definitive answer to is exactly
> what the "+" does or if it is even needed, I have seen
> 'default_versions" both with and without it.

The way I understand it, += appends. Thus:
FOO=bar
FOO+=quux
will result in FOO having the value bar quux. Sometimes you will see += 
used even for what looks like the first of a series of assignments. This 
works because the initial value is the empty string, and is usually done 
to add to any non-empty default or initial value the variable may be 
getting elsewhere (now or later) or to future-proof against needing to 
add something before the first assignment and forgetting to change it 
from = to +=.

See also, "Variable assignment modifiers" in the make manual page.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7aba543106af7b27ead61297c36d5e56>