]>
git.ipfire.org Git - thirdparty/bash.git/blob - support/bashbug.sh
3 # bashbug - create a bug report and mail it to bug-bash@prep.ai.mit.edu
5 # configuration section:
6 # these variables are filled in by the make target in cpp-Makefile
13 PATCHLEVEL
="@PATCHLEVEL@"
15 PATH
=/bin
:/usr
/bin
:usr
/local
/bin
:$PATH
20 BUGADDR
=${1-bug-bash@prep.ai.mit.edu}
24 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15
25 trap 'rm -f $TEMP $TEMP.x' 0
28 if (uname
) >/dev
/null
2>&1; then
32 if [ -f /usr
/lib
/sendmail
] ; then
33 RMAIL
="/usr/lib/sendmail"
34 elif [ -f /usr
/sbin
/sendmail
] ; then
35 RMAIL
="/usr/sbin/sendmail"
43 Subject: [50 character or so descriptive subject here (for reference)]
45 Configuration Information [Automatically generated, do not change]:
49 Compilation CFLAGS: $CFLAGS
52 Bash Version: $RELEASE
53 Patch Level: $PATCHLEVEL
56 [Detailed description of the problem, suggestion, or complaint.]
59 [Describe the sequence of events that causes the problem
63 [Description of how to fix the problem. If you don't know a
64 fix for the problem, don't include this section.]
72 if cmp -s $TEMP $TEMP.x
74 echo "File not changed, no bug report submitted."
78 ${RMAIL} $BUGADDR < $TEMP ||
{
79 cat $TEMP >> $HOME/dead.bashbug
80 echo "$0: mail failed: report saved in $HOME/dead.bashbug" >&2