bugGNU Octave - Bugs: bug #45869, finish.m fails to save current...


bug #45869: finish.m fails to save current workspace, assumes empty workspace

Submitter:  Tasos Papastylianou <tpapastylianou>
Submitted:  Thu 03 Sep 2015 01:51:00 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Tasos Papastylianou Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Thu 03 Sep 2015 06:23:40 PM UTC, comment #1: 

Thanks for noticing this.  I fixed it on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/7ddb10b31126).  It will be a part of the next bug fix release 4.0.1.

Rik <rik5>
Project Administrator
Thu 03 Sep 2015 01:51:00 PM UTC, original submission:  

Assume you have a finish.m file with the following instruction:

save myoctavesession -binary

Exit (thereby running the finish.m script before octave terminating), restart octave, and (assuming you're in the same directory as before) load this file again:

load myoctavesession

You will find that nothing has been saved.

The reason is that "finish.m" is called by _finish_.m which is a function; therefore, when "finish.m" is called, the current workspace is the empty workspace of the _finish_.m function, "not" the base workspace.

Converting the _finish_.m function to a script resolves the issue.

Tasos Papastylianou <tpapastylianou>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by tpapastylianou (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.





    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-03 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.9