From 0dc55878f15880c32ace0c7d63b215b92587714f Mon Sep 17 00:00:00 2001 From: Greg Noel Date: Fri, 5 Sep 2008 06:45:07 +0000 Subject: Issue 1689: short-term hack to make Ubuntu happy --- src/engine/SCons/Platform/posix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/Platform/posix.py b/src/engine/SCons/Platform/posix.py index 2a0e478..bc8d67c 100644 --- a/src/engine/SCons/Platform/posix.py +++ b/src/engine/SCons/Platform/posix.py @@ -51,7 +51,7 @@ exitvalmap = { def escape(arg): "escape shell special characters" slash = '\\' - special = '"$' + special = '"$()' arg = string.replace(arg, slash, slash+slash) for c in special: @@ -93,7 +93,7 @@ def _get_env_command(sh, escape, cmd, args, env): s = string.join(args) if env: l = ['env', '-'] + \ - map(lambda t, e=escape: t[0]+'='+e(t[1]), env.items()) + \ + map(lambda t, e=escape: e(t[0])+'='+e(t[1]), env.items()) + \ [sh, '-c', escape(s)] s = string.join(l) return s -- cgit v0.12