From 9f1dc774ff3ee1ddf5b62534e67c76201551f056 Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Tue, 17 Feb 2004 04:16:16 +0000 Subject: Use "env -" instead of "env -i". (Chad Austin) --- src/CHANGES.txt | 3 +++ src/engine/SCons/Platform/posix.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CHANGES.txt b/src/CHANGES.txt index e75d50d..885c744 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -33,6 +33,9 @@ RELEASE 0.95 - XXX - More robust handling of data in VCComponents.dat. + - If the "env" command is available, spawn commands with the more + general "env -" instead of "env -i". + From Kerim Borchaev: - Fix a typo in a msvc.py's registry lookup: "VCComponents.dat", not diff --git a/src/engine/SCons/Platform/posix.py b/src/engine/SCons/Platform/posix.py index e6b4b15..bc121e6 100644 --- a/src/engine/SCons/Platform/posix.py +++ b/src/engine/SCons/Platform/posix.py @@ -59,7 +59,7 @@ def escape(arg): def _get_env_command(sh, escape, cmd, args, env): if env: - s = 'env -i ' + s = 'env - ' for key in env.keys(): s = s + '%s=%s '%(key, escape(env[key])) s = s + sh + ' -c ' -- cgit v0.12