[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: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows |
Date: |
Fri, 20 May 2016 15:37:09 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #8, bug #47950 (project octave):
Just a guess, looking in liboctave/util/oct-glob.cc I see the following:
#if (defined (OCTAVE_HAVE_WINDOWS_FILESYSTEM) \
&& ! defined (OCTAVE_HAVE_POSIX_FILESYSTEM))
std::replace_if (xpat.begin (), xpat.end (),
std::bind2nd (std::equal_to<char> (), '\\'),
'/');
#endif
int err = gnulib::glob (xpat.c_str (), GLOB_NOSORT, 0,
&glob_info);
It appears that on Windows systems we change all path names that use the '\'
character as a file separator in to '/' before we call glob so that the
backslash is not treated as an escape character.
In this case, we want '\[' to escape the special meaning of the bracket but it
is being turned in to '/['.
_______________________________________________________
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] dir function fails with wildcard characters, anonymous, 2016/05/17
- [Octave-bug-tracker] [bug #47950] dir function fails with wildcard characters, Richard Suchland, 2016/05/17
- [Octave-bug-tracker] [bug #47950] dir function fails with wildcard characters, Richard Suchland, 2016/05/17
- [Octave-bug-tracker] [bug #47950] dir function fails with wildcard characters, Mike Miller, 2016/05/17
- [Octave-bug-tracker] [bug #47950] dir function fails with wildcard characters, Lachlan Andrew, 2016/05/17
- [Octave-bug-tracker] [bug #47950] dir function fails with wildcard characters, Richard Suchland, 2016/05/18
- [Octave-bug-tracker] [bug #47950] dir function fails with wildcard characters, John W. Eaton, 2016/05/18
- [Octave-bug-tracker] [bug #47950] dir function fails with wildcard characters, Richard Suchland, 2016/05/18
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Mike Miller, 2016/05/18
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows,
Rik <=
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Rik, 2016/05/20
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, John W. Eaton, 2016/05/20
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, John W. Eaton, 2016/05/20
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Rik, 2016/05/20
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Mike Miller, 2016/05/20
- [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