tech-toolchain archive

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

Re: bmake exports disallowed environment variables



In article <20130610163609.8F4D358097%chaos.jnpr.net@localhost>,
Simon J. Gerraty <sjg%juniper.net@localhost> wrote:
>Hi Chris,
>
>>bmake appears to export ${.MAKE.LEVEL} into the environment, which sh
>>doesn't support, due to the leading '.'.   Normally this is ignored,
>
>Yes, though env(1) does allow it.  The leading '.' was deliberately chosen
>to reduce the risk of this being picked up from user environment.
>That is, if make finds .MAKE.LEVEL in its environment, then it "trusts"
>it - either an ancestor was make (rather than say gmake), or the user
>"must know what they are doing".
>
>In short, I'd like to leave it as is.

Even as it is, it is broken. Read the commit message. I think being
compatible with gmake is good.

christos



Home | Main Index | Thread Index | Old Index