bugGNU Octave - Bugs: bug #34259, Compatibility: save with empty...

 
 

bug #34259: Compatibility: save with empty variable names

Submitted by:  Guillaume <gyom>
Submitted on:  Fri 09 Sep 2011 05:00:40 PM UTC  
 
Category:  Octave Function Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 30 Aug 2013 02:54:07 AM UTC, comment #3:

This was rather easy so I fixed it here (http://hg.savannah.gnu.org/hgweb/octave/rev/cb27dbf9e4ba). Closing report.

Rik <rik5>
Project Administrator
Tue 13 Aug 2013 12:18:52 PM UTC, comment #2:

Thanks for looking into this.

I find pertinent MATLAB throwing and error in the absence of a variable (rather than a warning) but I actually filled in a bug report here because I didn't want anything to be displayed if an empty variable name is given - adding an ID will fix it for me but maybe MATLAB behaviour could be used here in this special case so as an empty variable name is silently ignored.

Guillaume <gyom>
Sun 28 Jul 2013 03:54:51 PM UTC, comment #1:

Confirmed; however, note that the variables you wanted to save are indeed saved to the file, the only problem is the warning for each unknown variable or empty argument.

Would you consider this fixed if the warning had an ID that you could selectively disable with something like:

Mike Miller <mtmiller>
Project Administrator
Fri 09 Sep 2011 05:00:40 PM UTC, original submission:

There is a small difference in behaviour between Octave and MATLAB when using 'save' with empty variable names or non-existing variables:

In MATLAB:

In Octave:

I.e. Octave returns a warning while MATLAB returns an error for unknown variables.
Furthermore MATLAB ignores silently an empty variable name while Octave issues a warning.

I would advocate for a silent execution for the latter as it would allow the following:

Guillaume <gyom>

 

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

Attach Files:
   
   
Comment:
   

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 mtmiller (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-30 rik5 StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    2013-07-28 mtmiller CategoryNone => Octave Function
        Severity3 - Normal => 2 - Minor
        StatusNone => Need Info
        Operating SystemGNU/Linux => Any

    Back to the top


    Powered by Savane 3.4