[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62589] dir does not work correctly with '*' i
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #62589] dir does not work correctly with '*' in directory name in 7.1.0 |
Date: |
Mon, 6 Jun 2022 12:03:27 -0400 (EDT) |
Update of bug #62589 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
Confirmed. Trying to get exactly compatible behavior with Matlab is annoying.
For example, their documentation says that the asterisk character is always
treated as a wildcard---even on UNIX-like systems where that could be a
legitimate character in a filename. Something like
dir ('\*a/')
is never going to work because the escape character doesn't actually escape
anything.
>From what I can decipher of Matlab behavior, when a wildcard is used (and an
asterisk is the only wildcard for Matlab) it returns the directory name and
not the director contents. However, if a file separator is added after the
wildcard then directory contents are returned.
Example code
mkdir ('*a')
dir ('*a')
*a
mkdir ('*ba')
dir ('*a')
*a *ba
dir ('*a/')
Files found in: *a
. ..
Files found in: *ba
. ..
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62589>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62589] dir does not work correctly with '*' in directory name in 7.1.0, Patrick Häcker, 2022/06/06
- [Octave-bug-tracker] [bug #62589] dir does not work correctly with '*' in directory name in 7.1.0,
Rik <=
- [Octave-bug-tracker] [bug #62589] dir ('NAME*/') should list contents of directories rather than directory names, Rik, 2022/06/06
- [Octave-bug-tracker] [bug #62589] dir ('NAME*/') should list contents of directories rather than directory names, Markus Mützel, 2022/06/06
- [Octave-bug-tracker] [bug #62589] dir ('NAME*/') should list contents of directories rather than directory names, Markus Mützel, 2022/06/06
- [Octave-bug-tracker] [bug #62589] dir ('NAME*/') should list contents of directories rather than directory names, Markus Mützel, 2022/06/06
- [Octave-bug-tracker] [bug #62589] dir ('NAME*/') should list contents of directories rather than directory names, Rik, 2022/06/06
- [Octave-bug-tracker] [bug #62589] dir ('NAME*/') should list contents of directories rather than directory names, Markus Mützel, 2022/06/15