Red Hat Bugzilla – Bug 597145
guestfish 'help' command should indicate error in exit status with an unknown command
Last modified: 2011-07-14 15:12:24 EDT
Description of problem:
Issueing the 'help' command in guestfish with an unknown command name exits
with a 0 exit code.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. guestfish help foo
2. echo $?
the exit status of guestfish is 0
supposed to be some other than 0 to indicate an error.
I wanted to use help to test the availability of some new commands in a script,
finding that it's impossible to determine only from the exit status of guestfish.
Therefore I must test the stderr in order to work the result out.
Patch posted upstream:
Please clone this bug if you want this in RHEL 5/6. It's a relatively
simple change to backport.
(In reply to comment #1)
> Patch posted upstream:
> Please clone this bug if you want this in RHEL 5/6. It's a relatively
> simple change to backport.
Cloned as #598771 and #598772 since this is a simple change.
libguestfs-1.2.9-1.el5 has been submitted as an update for Fedora EPEL 5.
libguestfs-1.2.9-1.fc13 has been submitted as an update for Fedora 13.
libguestfs-1.2.9-1.el5.1 has been submitted as an update for Fedora EPEL 5.