1## Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2003, 2005,
2## 2007, 2008 John W. Eaton
4## This file is part of Octave.
6## Octave is free software; you can redistribute it and/or modify it
7## under the terms of the GNU General Public License as published by
8## the Free Software Foundation; either version 3 of the License, or (at
9## your option) any later version.
11## Octave is distributed in the hope that it will be useful, but
12## WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14## General Public License for more details.
16## You should have received a copy of the GNU General Public License
17## along with Octave; see the file COPYING. If not, see
18## <http://www.gnu.org/licenses/>.
21## @deftypefn {Function File} {} bug_report ()
22## Have Octave create a bug report template file, invoke your favorite
23## editor, and submit the report to the bug-octave mailing list when
24## you are finished editing.
32 warning ("bug_report: ignoring extra arguments");
35 printf ("Please enter a one-line description of your bug report.\n\n");
39 subject = input ("Subject: ", "s");
45 if (! isempty (prefs))
46 fid = fopen (prefs, "wt");
53 cmd = cstrcat ("octave-bug-", OCTAVE_VERSION);
55 if (length (subject) > 0)
56 cmd = sprintf ("%s -s \"%s\"", cmd, subject);
59 if (! isempty (prefs))
60 cmd = sprintf ("%s \"%s\"", cmd, prefs);
65 unwind_protect_cleanup
67 if (! isempty (prefs))