fish: Allow '-' prefix on command line to override exit on error (RHBZ#578407).
authorRichard Jones <rjones@redhat.com>
Tue, 13 Apr 2010 21:06:43 +0000 (22:06 +0100)
committerRichard Jones <rjones@redhat.com>
Tue, 13 Apr 2010 21:09:21 +0000 (22:09 +0100)
commitad752b80d7fa064b7bdd3d4c8d47c95d79265b58
tree22a8e3f35344fbe0659f824c5434c116c6797c74
parentc076aaea7e6d9459c8d8a96d21abd71a0223f098
fish: Allow '-' prefix on command line to override exit on error (RHBZ#578407).

Allow -cmd on the command line to mean that normal exit on error
behaviour is overridden, ie. we will not exit.

This allows you to do:

  guestfish -- command : -command : command

with the second command allowing errors.  (Note that '--' is required
to stop getopt parsing -command as an option).

Also this fixes the remote case which is what the original
bug report was about.
fish/fish.c
regressions/Makefile.am
regressions/rhbz578407.sh [new file with mode: 0755]