Commit 2ac0e890 authored by MichelJuillard's avatar MichelJuillard

another work-around for Octave 3.2 bug with "clear all"

parent e4c803d0
......@@ -443,11 +443,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
if (clear_all)
{
mOutputFile << "if exist('OCTAVE_VERSION')" << endl
<< " clear -all" << endl
<< "else" << endl
<< " clear all" << endl
<< "end" << endl;
mOutputFile << "clear all" << endl
// this is a work-around for a bug in Octave 3.2
<< "clear globals" << endl;
}
mOutputFile << "tic;" << endl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment