[issue39856] glob : some 'unix style' glob items are not supported

Je GeVa report at bugs.python.org
Wed Mar 4 17:27:00 EST 2020


New submission from Je GeVa <jejeva.bxl at gmail.com>:

some common Unix style pathname pattern expansions are not supported :

~/ for $HOME
~user/ for $HOME of user
{1,abc,999} for enumeration

ex:

lets say
$ls ~
hello1.a hello2.a helli3.c

then :
$echo ~/hell*{1,3}.*
hello1.a helli3.c

while
>> glob.glob("~/hel*")
[]
>> glob.glob("/home/jegeva/hel*")
['hello1.a','hello2.a','helli3.c
>> glob.glob("/home/jegeva/hell*{1,3}.*")
[]

----------
components: Library (Lib)
messages: 363396
nosy: Je GeVa
priority: normal
severity: normal
status: open
title: glob : some 'unix style' glob items are not supported
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39856>
_______________________________________


More information about the Python-bugs-list mailing list