[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 21:53:19 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Follow-up Comment #24, bug #47950 (project octave):
Discussion with jwe on #octave about this bug resulted in us thinking we
should *not* introduce more system-dependent functionality, and instead make
the dir() function behave differently from the glob() function, regardless of
the OS. I think the core problem, that dir() should work the same as the DOS
command DIR, is addressed either way, but this way avoids the risk of
accidentally introducing some inadvertent system-dependent behavior because of
some other function or script using dir() or glob() in an unanticipated way.
So our thinking is to either introduce a new function that is similar to glob
but only allows the asterisk and question mark wildcard characters to be
passed down to the real glob C function, or to add an option that does the
same such that it is only called from dir.m to do DOS/Windows-style
wildcards.
This means the dir() function will behave the same on Unixy operating systems
as well, and its documented wildcard matching behavior will be different from
the glob() and ls() functions.
So I think the first step would be either duplicating octave::sys::glob or
adding an optional parameter that changes its behavior as described and
exposing that such that it can be called that way by dir.m.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47950>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, (continued)
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Lachlan Andrew, 2016/05/20
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Philip Nienhuis, 2016/05/22
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Mike Miller, 2016/05/22
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Philip Nienhuis, 2016/05/22
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Mike Miller, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Rik, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Philip Nienhuis, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Mike Miller, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Philip Nienhuis, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Rik, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows,
Mike Miller <=
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Rik, 2016/05/23