[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33577: ls lacks null terminator option
From: |
Bob Proulx |
Subject: |
bug#33577: ls lacks null terminator option |
Date: |
Mon, 3 Dec 2018 12:55:30 -0700 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
積丹尼 Dan Jacobson wrote:
> For files with blanks in their names,
> one shouldn't need this workaround:
> $ ls -t | tr \\n \\0 | xargs -0 more > /tmp/z.txt
> Please add a --print0 option. like find(1) has.
I think that adding a --print0 option to 'ls' is not wise because it
would suggest to people seeing it that 'ls' should be used in scripts.
But 'ls' is a command designed for human interaction not for use in
scripts. Using 'find' for scripted use is the desired utility.
Such a patch has previously been submitted.
http://lists.gnu.org/archive/html/coreutils/2014-02/msg00005.html
Bob