Re: export vs $(origin )

2020-07-03 Thread Paul Smith
On Fri, 2020-07-03 at 11:50 +0200, Jan Beulich wrote: > > For example if you change the above makefile: > >export FOO > >$(info FOO: $(origin FOO)) > >all: ; @env | grep FOO > > then you run: > >$ unset FOO; make > >FOO: file > >FOO= > >make: 'all' is up to date. > > you

Re: export vs $(origin )

2020-07-03 Thread Jan Beulich
On 02.07.2020 17:31, Paul Smith wrote: > On Thu, 2020-07-02 at 17:16 +0200, Jan Beulich wrote: >>> export wom >>> introduces the variable to the env and set origin to environment. >> >> Not according to my observations. > > The difference is whether the variable already exists in the > environment