xref: /csrg-svn/libexec/bugfiler/sendbug.sh (revision 24068)
1#!/bin/csh -f
2#
3# Copyright (c) 1983 Regents of the University of California.
4# All rights reserved.  The Berkeley software License Agreement
5# specifies the terms and conditions for redistribution.
6#
7#	@(#)sendbug.sh	5.2 (Berkeley) 07/29/85
8#
9# Create a bug report and mail to '4bsd-bugs'.
10
11onintr clean
12/bin/cp /usr/ucb/bugformat /tmp/bug$$
13if ( ! $?EDITOR ) then
14	set EDITOR = /usr/ucb/vi
15endif
16$EDITOR /tmp/bug$$
17if ($#argv == 0) then
18	/usr/lib/sendmail -t 4bsd-bugs\@BERKELEY < /tmp/bug$$
19else
20	/usr/lib/sendmail -t $argv[1] < /tmp/bug$$
21endif
22
23clean:
24/bin/rm -f /tmp/bug$$
25