This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients serhiy.storchaka, xdegaye
Date 2015-11-08.15:54:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446998075.89.0.744136833143.issue25584@psf.upfronthosting.co.za>
In-reply-to
Content
On archlinux during an upgrade, the package manager backups some files in /etc with a .pacnew extension. On my system there are 20 such files, 9 .pacnew files located in /etc and 11 .pacnew files in subdirectories of /etc. The following commands are run from /etc:

    $ shopt -s globstar
    $ ls **/*.pacnew | wc -w
    20
    $ ls *.pacnew | wc -w
    9

With python:

    $ python
    Python 3.6.0a0 (default:72cca30f4707, Nov  2 2015, 14:17:31) 
    [GCC 5.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import glob
    >>> len(glob.glob('./**/*.pacnew', recursive=True))
    20
    >>> len(glob.glob('*.pacnew'))
    9
    >>> len(glob.glob('**/*.pacnew', recursive=True))
    11

The '**/*.pacnew' pattern does not list the files in /etc, only those located in the subdirectories of /etc.
History
Date User Action Args
2015-11-08 15:54:35xdegayesetrecipients: + xdegaye, serhiy.storchaka
2015-11-08 15:54:35xdegayesetmessageid: <1446998075.89.0.744136833143.issue25584@psf.upfronthosting.co.za>
2015-11-08 15:54:35xdegayelinkissue25584 messages
2015-11-08 15:54:35xdegayecreate