[issue37578] Change Glob: Allow Recursion for Hidden Files

Andrei Kulakov report at bugs.python.org
Thu Dec 16 19:38:57 EST 2021


Andrei Kulakov <andrei.avk at gmail.com> added the comment:

Zsh allows use of *, ? and ** to match hidden files and directories.

Bash allows the same for * and ? with `dotglob` option. There is also a `globstar` but my version of bash (on macos) is too old to have it.

By the way setting options in bash is done with `shopt -s <option>`.

I've put up a PR that enables behavior similar to Zsh and Bash (at least for ? and * chars).

----------

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


More information about the Python-bugs-list mailing list