|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows |
Date: | Fri, 15 Jul 2016 22:43:47 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #35, bug #47950 (project octave): @Lachlan: I think you can simplify the __wglob__ function. It is an internal function only used by dir.m. Since it will not be called directly by the user I think you can eliminated the input error checking. + if (args.length () != 1) + print_usage (); + + string_vector pat = args(0).xstring_vector_value ("glob: PATTERN must be a string"); + This could be just + string_vector pat = args(0).string_vector_value (); _______________________________________________________ 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] |