[4356] in Athena Bugs

home help back first fref pref prev next nref lref last post

sendbug

daemon@ATHENA.MIT.EDU (kkkken@ATHENA.MIT.EDU)
Thu Mar 1 05:47:54 1990

From: kkkken@ATHENA.MIT.EDU
Date: Thu, 1 Mar 90 05:47:34 -0500
To: bugs@ATHENA.MIT.EDU

Hello, I noticed a few things about sendbug... it'd be nice if it had a
man page, but that's no big deal.  But it ignores the $EDITOR
environment variable if the file $HOME/.mh_profile exits:

						(from /usr/athena/sendbug)

if [ -r $HOME/.mh_profile ]; then
        comp -form $report_file
        rm $report_file
        exit 0
fi

The true bug lies in comp, I suppose, which I have had to alias to:

	comp -editor $EDITOR

in order to get it to do the right thing.  Thus, I would recommend the
following patch for those of us who have .mh_profile files and like
emacsclient:

					(in file: /usr/athena/sendbug)
======================================================================
if [ "x$EDITOR" = "x" ]; then
        EDITOR=/usr/athena/emacs ; export EDITOR
fi

if [ -r $HOME/.mh_profile ]; then
        comp -form $report_file -editor $EDITOR
        rm $report_file
        exit 0
fi

# not using MH; run the editor, and send, ourselves.

$EDITOR $report_file
exec whatnow $report_file
======================================================================

This seems to handle all cases, so far as I can tell.

	thanks!

	-Ken



home help back first fref pref prev next nref lref last post