[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45869] finish.m fails to save current workspa
From: |
Tasos Papastylianou |
Subject: |
[Octave-bug-tracker] [bug #45869] finish.m fails to save current workspace, assumes empty workspace |
Date: |
Thu, 03 Sep 2015 13:51:01 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 |
URL:
<http://savannah.gnu.org/bugs/?45869>
Summary: finish.m fails to save current workspace, assumes
empty workspace
Project: GNU Octave
Submitted by: tpapastylianou
Submitted on: Thu 03 Sep 2015 13:51:00 GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Tasos Papastylianou
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45869>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45869] finish.m fails to save current workspace, assumes empty workspace,
Tasos Papastylianou <=