Karthikeyan Singaravelan <tir.kar...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39856>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to