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

 
 

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

Submitted by:  Tasos Papastylianou <tpapastylianou>
Submitted on:  Thu 03 Sep 2015 01:51:00 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Tasos PapastylianouOpen/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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:

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:

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Sep 2015 06:23:40 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1