[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #60538] Environment variable overrides explicit assignment
From: |
Paul Smith |
Subject: |
Re: [bug #60538] Environment variable overrides explicit assignment |
Date: |
Thu, 06 May 2021 13:19:39 -0400 |
User-agent: |
Evolution 3.36.4-0ubuntu1 |
On Thu, 2021-05-06 at 17:11 +0000, Martin Dorey wrote:
> > The manual doesn't actually say that MAKEOVERRIDES is exported like
> MAKEFLAGS but I assume it is.
>
> I was going to just say that MAKEFLAGS would be expanded before being
> exported, and indeed it is, but, having tried it, the results aren't
> quite what I would have expected, even having just skimmed the
> section on MAKEOVERRIDES that Paul just cited.
>
> $ make TESTNAME=badger 2>&1 | grep MAKE
> MAKEFLAGS= -- TESTNAME=badger
> ... eliding mentions of MAKE in my environment already...
> MAKEOVERRIDES=${-*-command-variables-*-}
> MAKELEVEL=1
> $
>
> So MAKEOVERRIDES is exported, though perhaps it doesn't need to be,
> but isn't expanded before being exported.
Without seeing your makefile I can't say what you're seeing but I don't
see it exported:
$ echo 'all:;@echo "mo=$$MAKEOVERRIDES"' | make -f-
mo=
- [bug #60538] Environment variable overrides explicit assignment, Shareef Jalloq, 2021/05/06
- [bug #60538] Environment variable overrides explicit assignment, Shareef Jalloq, 2021/05/06
- [bug #60538] Environment variable overrides explicit assignment, Paul D. Smith, 2021/05/06
- [bug #60538] Environment variable overrides explicit assignment, Shareef Jalloq, 2021/05/06
- [bug #60538] Environment variable overrides explicit assignment, Martin Dorey, 2021/05/06
- [bug #60538] Environment variable overrides explicit assignment, Paul D. Smith, 2021/05/06
- Re: [bug #60538] Environment variable overrides explicit assignment, David Boyce, 2021/05/06
- Re: [bug #60538] Environment variable overrides explicit assignment, Paul Smith, 2021/05/06
- Re: [bug #60538] Environment variable overrides explicit assignment, Martin Dorey, 2021/05/06
- Re: [bug #60538] Environment variable overrides explicit assignment,
Paul Smith <=
- Re: [bug #60538] Environment variable overrides explicit assignment, Paul Smith, 2021/05/06
- Re: [bug #60538] Environment variable overrides explicit assignment, Shareef Jalloq, 2021/05/06
- Re: [bug #60538] Environment variable overrides explicit assignment, Shareef Jalloq, 2021/05/06
- Re: [bug #60538] Environment variable overrides explicit assignment, Paul Smith, 2021/05/06