octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40537] save() work incorrectly when filename


From: count
Subject: [Octave-bug-tracker] [bug #40537] save() work incorrectly when filename contain square brackets pair []
Date: Thu, 1 Dec 2016 06:00:07 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #4, bug #40537 (project octave):

A fix is simple, like the attached file.

The problem is as pointed out in comment #1 that this behavior is intended:

libinterp/corefcn/load-save.cc


  // Guard against things like 'save a*', which are probably mistakes...

  else if (i == argc - 1 && glob_pattern_p (argv[i]))
    print_usage ();


But I would argue that in MATLAB, save('a*') will simply save all variables to
a file named "a*.mat", without a warning.

(file #39124)
    _______________________________________________________

Additional Item Attachment:

File name: fix_bug40537_v1.cset           Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40537>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]