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 are unable to e


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows
Date: Sat, 16 Jul 2016 09:39:51 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

Follow-up Comment #38, bug #47950 (project octave):

With Lachlan's patch from comment #34, I get this (the OP's thing):

## cd to c:/tmp
>> status = mkdir ('c:\[test]')
status = 1
>> cd 'c:\[test]'
>> status = mkdir ('[test2]')
status = 1
>> cd c:/tmp
>> dir \[test]
error: Invalid call to test.  Correct usage is:

 -- test NAME
:
<snip>
:
>> dir /[test]
warning: dir: nonexistent directory '/[test]'
warning: called from
    dir at line 153 column 5
>> dir c:/[test]
.        ..       [test2]
>> dir c:\[test]
.        ..       [test2]
>>


from which I conclude:
(1) That this bug has been fixed.

(2) Apparently (I didn't know that) on Windows one needs to add the drive
letter + colon to refer to files/directories in the root of a drive.

Do you guys want me to try the latest patch, or are you sufficiently confident
to just push?


    _______________________________________________________

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]