Special characters in $TARGET
This issue was originally created at: 2010-07-19 06:30:05.
This issue was reported by: py.
py said at 2010-07-19 06:30:05
If the target has a space character ' ', then
$TARGETwill be quoted. I'm >wondering what is the rule that a$TARGETis quoted or not.Also, the target 'zzz().txt' is always remade. I guest this bug is related with the test that scons run to see if a file is available or has been changed or not. Could the developers check to fix the bug?
$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
mkdir -p main; echo xxx > "main/xxx .txt"
mkdir -p main; echo ppp > main/zzz$.txt
mkdir -p main; echo ppp > main/zzz().txt
mkdir -p main; echo ppp > main/zzz.txt
mkdir -p main; echo ppp > main/zzz\.txt
scons: done building targets.
$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
mkdir -p main; echo ppp > main/zzz().txt
scons: done building targets.
# SConstruct
import os
import os.path
env = Environment()
env.Command('main/xxx .txt', [], 'mkdir -p main; echo xxx > $TARGET');
env.Command('main/zzz.txt', [], 'mkdir -p main; echo ppp > $TARGET');
env.Command('main/zzz().txt', [], 'mkdir -p main; echo ppp > $TARGET');
env.Command('main/zzz$.txt', [], 'mkdir -p main; echo ppp > $TARGET');
env.Command('main/zzz\.txt', [], 'mkdir -p main; echo ppp > $TARGET');
gregnoel said at 2010-08-08 12:50:30
Bug party triage. Steven to capture test case, update with recommended workaround, and then close as INVALID.
What was the recommended workaround? To me, looks like everything is behaving as it should be. The second scons run doesn't build anything (as expected, but unlike the paste above). Recommend closing.