octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40544] dir() work differently when filename c


From: count
Subject: [Octave-bug-tracker] [bug #40544] dir() work differently when filename contain paired square brackets []
Date: Mon, 11 Nov 2013 09:24:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 Iceweasel/24.0

URL:
  <http://savannah.gnu.org/bugs/?40544>

                 Summary: dir() work differently when filename contain paired
square brackets []
                 Project: GNU Octave
            Submitted by: count
            Submitted on: Mon 11 Nov 2013 09:24:07 AM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Suppose you have a file named "a[1]"


> ls a[1]
a[1]
> dir('a[1]')
warning: dir: nonexistent directory `a[1]'


It's been treated as wildcards match, but `help dir` doesn't mention that
explicitly.

Matlab will return the information about the file "a[1]".

In octave, I have to do something like


> dir('a\[1\]')


Seems hard to fix... but at least document it will have a great help.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40544>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]