|
From: | Philip Nienhuis |
Subject: | [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows |
Date: | Sun, 22 May 2016 20:05:11 +0000 (UTC) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Follow-up Comment #17, bug #47950 (project octave): @Mike: AFAIK, no. See here (https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#naming_conventions) for an overview of forbidden filename characters: < > : " / \ | ? * ...and anything with a uint8 value below 32. I got the impression that this bug isn't so much about allowed characters in path & file names but rather about characters allowed/used in globbing patterns (hence the issue with '[' and ']'). In MSYS, globbing simply works. For a directory tree: c:\tmp\octave\dirab.txt c:\tmp\octave\dirac.txt I get: address@hidden /c/tmp/octave $ ls dira[bd].txt dirab.txt address@hidden /c/tmp/octave $ ls dira[bdef].txt dirab.txt address@hidden /c/tmp/octave $ ls dira[acf].txt dirac.txt so I'd somewhat naively guess that if Octave invokes the file I/O in the mingw libraries, globbing in Octave should simply work on Windows as well. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47950> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |