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 fail with escap


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows
Date: Sat, 21 May 2016 00:16:23 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

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

We could use the fact that '/' is not valid in Windows file names.
A possible rule would be

- In any string that contains a '/', don't translate '\', regardless of OS. 
That way, if a string is using unix-like directory separators, it can use
unix-like escapes even on Windows systems.  The only ambiguity would arise if
the string mixed the two on a Windows system.

This would fail in Mike's example of comment #3, but that could easily be
replaced by  dir ('./\[abc\]').

    _______________________________________________________

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]