scons assumes all elements of sys.argv are != ""
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SCons |
Fix Released
|
High
|
|||
scons (Ubuntu) |
Fix Released
|
Low
|
Luca Falavigna |
Bug Description
Binary package hint: scons
Ubuntu 8.10
scons 0.98.5-1ubuntu1
It is possible to call SCons and pass an empty element as part of sys.argv (python example):
cd /path/to/
python
>>> import subprocess
>>> subprocess.
SCons' hand-written parser for the command line now assumes that all elements of sys.argv are != "", resulting in:
IndexError: string index out of range:
File "/usr/lib/
_exec_
File "/usr/lib/
_main(parser)
File "/usr/lib/
if a[0] == '-':
Tested with the Battle for Wesnoth trunk SVN sources (although the bug should be reproducible with all sources using a SCons build system). Note that you need some sources to reproduce the bug, otherwise, SCons just complains about the lack of SConscript etc. and quits.
Related branches
Changed in scons: | |
status: | Unknown → Confirmed |
Changed in scons: | |
status: | Confirmed → Fix Released |
Changed in scons: | |
importance: | Unknown → High |
Thank you for your bug report.
Confirmed in Jaunty too with 1.2.0-1.