David Boyce observed:
> I was unpleasantly surprised to learn while following this discussion
> that "Except by explicit request, make exports a variable only if it
> is either defined in the environment initially _or set on the command
> line_".

... and I was surprised to find (by experiment with
<file name="Makefile">

default:
        /usr/bin/env

</file> invoked via make WURGLE=8, finding this indeed reported by env)
that this really does mean export *to the environment*, where I had
supposed it was exported only to subordinate make invocations (by virtue
of being part of MAKEFLAGS).

This does seem like an unsound choice, for the reasons David gave,

        Eddy.

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to