bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils ls


From: Vitaly V. Ch
Subject: Re: coreutils ls
Date: Mon, 3 Dec 2007 11:51:16 +0200

On Nov 30, 2007 11:58 PM, Micah Cowan <address@hidden> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bob Proulx wrote:
> > Vitaly V. Ch wrote:
> >> As I understand  ls require null-separated format of output stream
> which
> >> will suitable for xargs.
> >>
> >> in this case I systematically use find instead of ls.
> >
> > Your message seems to be garbled and I, and perhaps others on the
> > mailing list too, cannot understand what you are trying to say.  If
> > you have a bug please describe the problem such that we can recreated
> > it.  If you are requesting a feature then try to state the feature
> > request in such a way that other people can understand it.  Thanks.
>
> It reads to me like a request for ls to produce null-separated output,
> so that


Yes, it is.

>
>
>  $ ls -0 .


which ls can  understand it? on my system:

 bash-3.1# LANG= ls -0 .
ls: invalid option -- 0
Try `ls --help' for more information.
bash-3.1# LANG= ls --version
ls (GNU coreutils) 6.9
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard Stallman and David MacKenzie.
bash-3.1#

>
>
> will produce output like
>
>  $ find . -print0 -maxdepth 1
>
> Vitaly: note that both find's -print0 and xarg's -0 are GNU extensions,
> and are not portable.


I know it.  I do not use non-GNU systems.

>
>
> And, if find does the job, then why do you need a second tool to be able
> to accomplish the same thing?


find is extra-power but ls is simple:)

>
>
> - --
> Micah J. Cowan
> Programmer, musician, typesetting enthusiast, gamer...
> http://micah.cowan.name/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iD8DBQFHUIdv7M8hyUobTrERApeCAJ96OSHf2LaJ3rQPdPbK1BHMZucu9gCfchuW
> /UYB8IciNH7QH80O2p/XcNg=
> =NKV9
> -----END PGP SIGNATURE-----
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]