%N mir.bug.csh %F $MIR/src/scripts/mir.bug.csh.clone
%D Send mail about bugs to appropriate person
%P bpw
%: user utility
%B
Usage: mir.bug.csh [selection] [taskname or 'general'] [file]

Mirbug allows the user to send bugreports to the appropriate persons.

[selection] should be one of "bug" or "feedback". This influences
the information prepended to a report file. "mirbug" is an alias
for "mir.bug.csh bug"; " mirfeedback" is an alias for "mir.bug.csh
feedback"

[taskname] should be one of the miriad tasks/tools/scripts or the
string 'general'. The taskname can be the name of any file on the
MIRPDOC directory with "doc" in the extension. This parameter is used
to find out who is responsible for the code and then the report is
mailed to that person. If this argument is not given the report is
sent to some miriad central addresses.

[file] (optional) is the name of a previously created file containing
the report. This must be the third argument.

mir.bug.csh creates a template report or prepends it to the optional
file and then starts an editor. The default editor is vi on unix and
edt on VMS. However, by including 'setenv EDITOR mem' in your .cshrc
file (unix) or 'editor:==mem' in the login.com file (VMS) it is
possible to specify which editor to use.

After exiting the editor the user is given the option of not mailing
the report by using ^C. If this is not done within 5 seconds, the
report is mailed to the person responsible, to a central address and
to the sender. If ^C is used, the report is saved.
