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

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

[Octave-bug-tracker] [bug #47950] glob and dir functions are unable to e


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows
Date: Mon, 23 May 2016 19:05:20 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #21, bug #47950 (project octave):

I think the change needs to be made in the octave::sys::glob function

http://hg.savannah.gnu.org/hgweb/octave/file/7190a26977cb/liboctave/util/oct-glob.cc#l69

in the same loop where backslashes are replaced with forward slashes. If the
system is Windows but not Cygwin (the same condition that is already used
there) square brackets should be prefixed with a backslash. It's unclear to me
whether Windows users would like this change to apply to both the dir() and
glob() functions, or whether glob() is expected to use Unix paths and Unix
wildcards, while dir() is expected to behave like the Windows command of the
same name.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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