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>
Wed, 14 Apr 2010 20:56:38 +0000 (21:56 +0100)
commite4d115487ea5bc454a5afc5ed22c3519f27076c8
tree728d57ad9193dc1ec4124849be0939ba9e9d92f8
parente8b02113ccdaf62960bb9138d8ebd801bad9d036
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.
(cherry picked from commit ad752b80d7fa064b7bdd3d4c8d47c95d79265b58)
fish/fish.c
regressions/Makefile.am
regressions/rhbz578407.sh [new file with mode: 0755]