On 2020-10-24 at 12:29:01 -0400,
Brian Allen Vanderburg II via Python-ideas <python-ideas@python.org> wrote:

> ... Find can output it's filenames in null-terminated lines since it
> is possible to have newlines in a filename(yuck) ...

Spaces in filenames are just as bad, and much more common:

    $ touch 'foo bar'
    $ find . -name 'foo bar'
    ./foo bar
    $ find . -name 'foo bar' -print | xargs ls -l
    ls: cannot access './foo': No such file or directory
    ls: cannot access 'bar': No such file or directory
    $ find . -name 'foo bar' -print0 | xargs -0 ls -l
    -rw-r--r-- 1 dan dan 0 Oct 24 13:31 './foo bar'
    $ rm 'foo bar'
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/F5UX5CL7YQIHEX3MP5R4GUVHIXCS5VQP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to