There are still commands which returns $? != 0 for '-h' or '-help' parameter: $ condor_cod -h; echo $? ... 1 $ condor_findhost -h; echo $? ... 1 $ condor_router_history -h; echo $? ... 1 $ condor_ssh_to_job -h; echo $? ... 2 $ condor_submit_dag -help; echo $? ... 1 $ condor_userlog -help; echo $? ... 1 $ condor_wait -help; echo $? ... 1 Tested with condor-7.6.5-0.11.el5/.el6.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: C: Run commands with help switch -h C: The command returns non-zero on exit. F: Update commands to return zero when -h switch is present R: The commands return zero when -h switch is present.
Reproduced with: $CondorVersion: 7.6.5 Apr 02 2012 BuildID: RH-7.6.5-0.14.el5 $ $CondorPlatform: X86_64-RedHat_5.8 $ # condor_cod -h; echo $? ... 1 # condor_findhost -h; echo $? ... 1 # condor_router_history -h; echo $? ... 1 # condor_ssh_to_job -h; echo $? ... 2 condor_submit_dag -help; echo $? ... 1 condor_userlog -help; echo $? ... 1 condor_wait -help; echo $? ... 1
Retested with: $CondorVersion: 7.8.7 Nov 15 2012 BuildID: RH-7.8.7-0.5.el5 $ $CondorPlatform: X86_64-RedHat_5.8 $ $CondorVersion: 7.8.7 Nov 15 2012 BuildID: RH-7.8.7-0.5.el5 $ $CondorPlatform: I686-RedHat_5.8 $ # condor_router_history -h; echo $? USAGE: condor_router_history [OPTIONS] --show_records (show individual records in addition to summary) --show_iwd (when showing records, include working directory) --age=<days> (how many days ago end time should be) --days=<days> (how many days report should cover) --start="YYYY-MM-DD HH:MM" (date of start time of report) Command line argument error: 0 USAGE: condor_router_history [OPTIONS] --show_records (show individual records in addition to summary) --show_iwd (when showing records, include working directory) --age=<days> (how many days ago end time should be) --days=<days> (how many days report should cover) --start="YYYY-MM-DD HH:MM" (date of start time of report) 1 The condor_router_history command was not fixed on RHEL5 - on both 32/64 version. >>> ASSIGNED
on RHEL 5 version of python turns out sys.exit(0) raises an exception then calls Usage(). Fix is to call os._exit(0)
Retested with: $CondorVersion: 7.8.7 Dec 05 2012 BuildID: RH-7.8.7-0.6.el5 $ $CondorPlatform: X86_64-RedHat_5.9 $ $CondorVersion: 7.8.7 Dec 05 2012 BuildID: RH-7.8.7-0.6.el5 $ $CondorPlatform: I686-RedHat_5.9 $ # condor_router_history -h; echo $? USAGE: condor_router_history [OPTIONS] --show_records (show individual records in addition to summary) --show_iwd (when showing records, include working directory) --age=<days> (how many days ago end time should be) --days=<days> (how many days report should cover) --start="YYYY-MM-DD HH:MM" (date of start time of report) 0 >>> VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0564.html