bug-make
[Top][All Lists]
Advanced

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

GNU Make bug exporting environment variables to the "shell" command


From: Erich Boleyn
Subject: GNU Make bug exporting environment variables to the "shell" command
Date: Tue, 10 Feb 2015 10:35:54 -0800

Summary:
        Environment variables set in the Makefile do not get inherited
        into anything run via the "shell" subcommand.

Tested on GNU Make versions:
        3.81 (on Ubuntu)
        4.1 (on FreeBSD)

Example Makefile contents which can show the bug:
        export FOO=foo
        main:
                echo "$(shell env)"
                env

If exporting to the environment functioned properly, you'd expect
to see 2 "FOO=foo" outputs (one from the "echo", one from the bare
"env"), but what we observed was that the env printed out as part
of the "echo" did not contain the "FOO=foo".

Environment variables from outside the Makefile seem to be inherited
just fine.


--
    Erich Stefan Boleyn   <address@hidden>    http://www.duckytech.com/



reply via email to

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