Re: Deferred->immediate variable reassignment trick.

"Brian J. Murrell" <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Message-ID <[email protected]>
On Wed, 2023-06-21 at 11:47 -0400, Paul Smith wrote:
> On Wed, 2023-06-21 at 08:31 -0700, Kaz Kylheku wrote:
> > If I just have this:
> > 
> >   IMPORTANT_VAR := $(shell sh -c "echo calculate; echo executed
> > 1>&2")
> > 
> > and do "make IMPORTANT_VAR=alternative", I still see "executed"
> > on standard output.
> 
> IMO that is a bug and it should be reported as such on Savannah.

Is it?  Isn't the functionality of not overriding a variable value set
on the make command line with a value in the Makefile what the ?=
assignment operator is for?

Cheers,
b.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEE8B/A+mOVz5cTNBuZ2sHQNBbLyKAFAmSTHWIACgkQ2sHQNBbL
yKCQGgf/RuR58vr7fPo34VGhmuORZxsNho9rdSujscfrxOLfxd1Khl5mnHQpNM0A
Z60duplt6P4DVQDCqVMOOEji9MsqHbbG1h014gobzkp0TAoJ5YIiZcBpvhTzkjJC
1TT8HGkUSlIfU8J8k8y+mTuAUtSrhkT0LBv3GtKqSiZ2e1TBB4zt2qIlVuQf1ras
SF6A5ApcxWOOX2VXPXbwF5Ld89s3kMT6VD3G3NRdeTejYmApkcbnoc0bJHQ8x/Be
Pzs6wxxIoZhtYvOwtWbURPF6djtojXzuWc4BD6DshVXyilEkxLhtBjHV3Qedce/A
zzB5xZ2n4KpJV9nqehP/Qu0ctwphBA==
=YF89
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.