#!/bin/bash
# Maybe this script have been taken from Debian
# Modified to work under Bad Penguin by AGX
no_exit_on_failed_exec=
[ ! "$VISUAL" = "" ]  && exec ${VISUAL} "$@"
[ ! "$EDITOR" = "" ]  && exec ${EDITOR}:-} "$@"
exec joe "$@"
exec vi "$@"
exec mcedit "$@"
exec emacs "$@"
echo "Couldn't find an editor!" 1>&2
echo "Please set the \$VISUAL environment variable to your desired editor." 1>&2
echo "If your haven't done so, please install one of the editor packages." 1>&2
exit 1
