Public bug reported: 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/sources-using-scons/ python >>> import subprocess >>> subprocess.Popen(("scons", "")) 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/scons/SCons/Script/Main.py", line 1248: _exec_main(parser, values) File "/usr/lib/scons/SCons/Script/Main.py", line 1213: _main(parser) File "/usr/lib/scons/SCons/Script/Main.py", line 859: 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. ** Affects: scons (Ubuntu) Importance: Undecided Status: New -- scons assumes all elements of sys.argv are != "" https://bugs.launchpad.net/bugs/338492 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs