From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080715 Fedora/2.0.0.16-1.fc8 Firefox/2.0.0.16 Description of problem: msghack does not check if mandatory command line parameters are present. This behavior leads to various tracebacks. Version-Release number of selected component (if applicable): gettext-0.16.1-12.fc8 How reproducible: Always Steps to Reproduce: $ msghack -o Traceback (most recent call last): File "/usr/bin/msghack", line 351, in <module> output=sys.argv[sys.argv.index("-o")+1] IndexError: list index out of range $ msghack --invert Traceback (most recent call last): File "/usr/bin/msghack", line 355, in <module> file=sys.argv[sys.argv.index("--invert")+1] IndexError: list index out of range $ msghack --master Traceback (most recent call last): File "/usr/bin/msghack", line 371, in <module> master=GTMaster(gtfs) File "/usr/bin/msghack", line 315, in __init__ self.createMaster(dicts) File "/usr/bin/msghack", line 324, in createMaster self._master=dicts[0] IndexError: list index out of range $ msghack --empty Traceback (most recent call last): File "/usr/bin/msghack", line 363, in <module> file=sys.argv[sys.argv.index("--empty")+1] IndexError: list index out of range $ msghack --append Traceback (most recent call last): File "/usr/bin/msghack", line 374, in <module> file=sys.argv[sys.argv.index("--append")+1] IndexError: list index out of range Actual Results: The utility exits with a traceback. Expected Results: The utility exits without traceback (it can display the usage message). Additional info:
Ding, do you mind taking a look at this, please.
requested by Jens Petersen (#27995)
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping