積丹尼 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