# HG changeset patch # User jwe # Date 782067453 0 # Node ID 73fdde1f8473e4f4a7439d10e326415578a931ca # Parent 47846f7e18fc18101c3d2e494f36a6e8cefa7614 [project @ 1994-10-13 16:57:33 by jwe] diff --git a/scripts/miscellaneous/bug_report.m b/scripts/miscellaneous/bug_report.m --- a/scripts/miscellaneous/bug_report.m +++ b/scripts/miscellaneous/bug_report.m @@ -37,10 +37,24 @@ # XXX FIXME XXX -- really need a better system command, one that will # automatically send output from the command to stdout... - if (length (subject) > 0) - system (sprintf ("octave-bug -s \"%s\" > /dev/tty", subject)); - else - system ("octave-bug > /dev/tty"); + prefs = octave_tmp_file_name (); + + if (! isempty (prefs)) + fopen (prefs, "w"); + dump_prefs (prefs); + fclose (prefs); endif + cmd = "octave-bug"; + + if (length (subject) > 0) + cmd = sprintf ("%s -s \"%s\"", cmd, subject); + endif + + if (! isempty (prefs)) + cmd = sprintf ("%s %s", cmd, prefs); + endif + + system (sprintf ("%s > /dev/tty", cmd)); + endfunction