tech-toolchain archive

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

Re: bmake exports disallowed environment variables



On Jun 10, 2013, at 10:36 AM, Simon J. Gerraty 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.

Then perhaps you can share the /bin/sh syntax to unset it?

Warner



Home | Main Index | Thread Index | Old Index