summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2008-09-05 06:45:07 (GMT)
committerGreg Noel <GregNoel@tigris.org>2008-09-05 06:45:07 (GMT)
commit0dc55878f15880c32ace0c7d63b215b92587714f (patch)
treee8192a5e7f21cf8032c9a378fea69f844edef801 /src
parent6fbb44b7d5934ee36244049bfea68d44de968a86 (diff)
downloadSCons-0dc55878f15880c32ace0c7d63b215b92587714f.zip
SCons-0dc55878f15880c32ace0c7d63b215b92587714f.tar.gz
SCons-0dc55878f15880c32ace0c7d63b215b92587714f.tar.bz2
Issue 1689: short-term hack to make Ubuntu happy
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Platform/posix.py4
1 files 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