Follow-up Comment #2, bug#65359 (group make):

Hi, Martin,

Normally make variables are different with shell variables. Exported shell
variables can be seen by make. However, exported make variables cannot be seen
by shell in recipes.
I don't know whether submake gets make exported variables via shell variables.
But even if this is true, it cannot explain why the submake works well if
removing the ';' at the end of the recipe (which invokes submake).

[comment #1 comment #1:]
> Because then Make runs the command with a shell and, perhaps particularly
after Shellshock, shells are increasingly diligent about cleaning the
environment (eg
https://stackoverflow.com/questions/36989263/why-cant-environment-variables-with-dashes-be-accessed-in-bash-4-1-2),
so what could Make do?  I guess it could warn that your export is unlikely to
work reliably.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65359>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to