python 2.7.12 on Linux behaving differently than on Windows

Marko Rauhamaa marko at pacujo.net
Wed Dec 7 08:21:47 EST 2016


Chris Angelico <rosuav at gmail.com>:

> $ find Music/ -name *\\?*

I do recommend quoting your wildcard characters.

Yet further nasty security pitfalls in bash programming:

 5. Wildcards that don't match any file are left unexpanded.

 6. Commands behave unexpectedly when given null lists:

    $ ls a b c
    a     b     c
    $ ls a b
    a     b
    $ ls a
    a
    $ ls
    a     b     c     d


Marko


More information about the Python-list mailing list