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: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows
Date: Sun, 22 May 2016 15:55:21 +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 #15, bug #47950 (project octave):

@Lachlan, comment #14:
On MinGW both '\' and '/' are valid in (Windows) file names and most Octave
commands working on/with files and directories treat  '\' and '/' as file
separators in single-quoted path/file names.

Escaping characters preceded by a backslash in Windows file/path names can be
avoided by using sq-strings. But if escaping characters is required,
dq-strings, with double backslashes for backslashes that need to survive
escaping, is the best and maybe the only option AFAIK.
I think this is an unavoidable (IMO little) issue that Windows users have to
be aware of.

Could it help if on Windows, glob() would only convert '\' into '/' for
sq-strings?  Or is sq-to-dq string conversion performed before handing the
input string to glob() (as the code snippet in #comment 8 seems to suggest)?


    _______________________________________________________

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]