diff options
author | Steven Knight <knight@baldmt.com> | 2004-02-17 04:16:16 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-02-17 04:16:16 (GMT) |
commit | 9f1dc774ff3ee1ddf5b62534e67c76201551f056 (patch) | |
tree | f445e098b60a2957ffe622a80503e68ce178a440 | |
parent | 854094bf6993b4872f50e625377216950aee1d56 (diff) | |
download | SCons-9f1dc774ff3ee1ddf5b62534e67c76201551f056.zip SCons-9f1dc774ff3ee1ddf5b62534e67c76201551f056.tar.gz SCons-9f1dc774ff3ee1ddf5b62534e67c76201551f056.tar.bz2 |
Use "env -" instead of "env -i". (Chad Austin)
-rw-r--r-- | src/CHANGES.txt | 3 | ||||
-rw-r--r-- | src/engine/SCons/Platform/posix.py | 2 |
2 files changed, 4 insertions, 1 deletions
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 ' |