Closed tj800x closed 3 years ago
The issue doesn't appear to be just OSX. I was able to reproduce it on ubuntu Ubuntu 20.04.2 LTS (Focal Fossa) on a clean build from master.
root@3c4407323ae3:~/gobo/tool/geant/example/geant# geant -v -b geant1.eant
Loading Project's configuration from geant1.eant
Building Project
geant.one:
[set global] who=Bart
[set global] buildfile=../variables/variables5.eant
[echo]
------------------------
[echo]
before call of ../variables/variables5.eant
[geant] geant -v -b ../variables/variables5.eant var
Loading Project's configuration from ../variables/variables5.eant
Building Project
variables5.var:
[echo]
Hello ${who}
[echo]
after call of ../variables/variables5.eant
[echo]
-------
[echo]
before call of ../variables/variables5.eant
[geant] geant -v -b ../variables/variables5.eant var
Loading Project's configuration from ../variables/variables5.eant
Building Project
variables5.var:
[echo]
Hello ${who}
[echo]
after call of ../variables/variables5.eant
I ran it under Windows and I also got:
Hello ${who}
But looking a little bit deeper, it looks like it is the expected behavior. Indeed, if you look at: http://www.gobosoft.com/eiffel/gobo/geant/geant_task.html you see that there is a fork when we specify the option file
in line:
<geant file="${buildfile}" target="var"/>
So the variable is not passed to ../variables/variables5.eant
.
In order to display:
Hello Bart
we have to specify:
<setenv name="who" value="Bart"/>
so that who
is an environment variable which will be passed to the fork process.
I'm running through the geant documentation and having a problem with OSX 10.15.7. When I run the geant1.eant example it doesn't seem to be setting the global variable "who" in the ../variables/variables5.eant build file.
As you can see the last echo is "hello ${who}" when it should be "hello bart" according to the documentation.
Here is the output with debugging.