From 51c0f53321b6472d2844d20ec4fce3f3e24dd287 Mon Sep 17 00:00:00 2001 From: GregNoel Date: Fri, 5 Sep 2008 06:45:07 +0000 Subject: [PATCH] Issue 1689: short-term hack to make Ubuntu happy git-svn-id: http://scons.tigris.org/svn/scons/trunk@3340 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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 2a0e4781..bc8d67c5 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 -- 2.26.2