Ned Deily added the comment: FWIW, it looks like Path.glob() is behaving the same as the default shell (bash 3.2 on OS X 10.6.8):
Python 3.4.0a4+ (default:cce14bc9b675, Nov 22 2013, 13:01:47) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pathlib >>> p = pathlib.Path(".") >>> list(p.glob("fileA")) [PosixPath('fileA')] >>> list(p.glob("file*")) [PosixPath('fileA')] >>> list(p.glob("fileA*")) [PosixPath('fileA')] >>> list(p.glob("FILE*")) [] >>> list(p.glob("FILEa*")) [] >>> list(p.glob("FILEa")) [PosixPath('FILEa')] >>> list(p.glob("FILEA")) [PosixPath('FILEA')] $ ls . fileA $ ls fileA fileA $ ls file* fileA $ ls fileA* fileA $ ls FILE* ls: FILE*: No such file or directory $ ls FILEa* ls: FILEa*: No such file or directory $ ls FILEa FILEa $ ls FILEA FILEA ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19718> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com