[issue39856] glob : some 'unix style' glob items are not supported
Karthikeyan Singaravelan
report at bugs.python.org
Wed Mar 4 22:58:45 EST 2020
Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:
This seems to be similar to issue9584. Below are the results in my zsh and bash in Mac.
bash
bash-3.2$ cd /tmp/
bash-3.2$ ls *py
hello_1.py hello_2.py hello_3.py
bash-3.2$ ls hell*{1-2}.*
ls: hell*{1-2}.*: No such file or directory
bash-3.2$ ls hell*[1-2].*
hello_1.py hello_2.py
zsh
➜ /tmp ls *py
hello_1.py hello_2.py hello_3.py
➜ /tmp ls hell*{1-2}.*
zsh: no matches found: hell*{1-2}.*
➜ /tmp ls hell*[1-2].*
hello_1.py hello_2.py
Try using []
>>> import glob
>>> glob.glob("hell*[1-2].*")
['hello_2.py', 'hello_1.py']
----------
nosy: +serhiy.storchaka, xtreak
type: -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39856>
_______________________________________
More information about the Python-bugs-list
mailing list