[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exported vs command line variables

From: Edward Welbourne
Subject: Re: exported vs command line variables
Date: Fri, 23 Sep 2016 13:24:02 +0000

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">


</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,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]