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: Mike Miller
Subject: [Octave-bug-tracker] [bug #40537] save() work incorrectly when filename contain square brackets pair []
Date: Sun, 10 Nov 2013 15:55:10 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36

Update of bug #40537 (project octave):

                Severity:              3 - Normal => 2 - Minor              
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Confirmed on the development version.

Many programs are going to have trouble with file names containing square
brackets, it's best to stick to portable file names.

That being said, your analysis looks right, the save function is interpreting
the file name as a variable pattern because it looks like a glob string. The
same error occurs if you try to save to a file containing an asterisk or a
question mark.

There is a comment in the code that suggests this is done intentionally.
Probably to prevent users from calling save with a pattern and no file name.

So if a user runs


> save ab*


should it save all variables to a file named "ab*", or should it error like it
does today because that is probably not what they meant?

    _______________________________________________________

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]