Re: du and wc should be able to read arguments from a file
Bernd Jendrissek <[email protected]> Thu, 18 Sep 2003 11:12:19 +0200
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Sep 18, 2003 at 09:23:24AM +0200, Jim Meyering wrote: > If the format is simply one file name per line, then what about > files with names containing a newline? > > One solution is to require that newlines and backslashes be backslash-escaped. > Another is simply to require that file names be NUL (aka '\0') separated, > like what find's -print0 option would output. > In the interests of keeping things simple, I'm leaning toward the latter. And even if the list of filenames is \n-separated to begin with, you can always pipe that through tr '\n' '\0'. So yes, NUL-separation seems to be more expressive. - -- [I can't guarantee the integrity of my mail; I suspect my employer of mail tampering (adding disclaimers without my authorization). Please consider only signed text as my words. Verify if you can!] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/aXbn/FmLrNfLpjMRAoupAJ9xhSurcAeGEYDIlbMx2VGcgoKhpwCgrI2u hzTmAS2pLmoJ+4ZfIHgb9xs= =KybP -----END PGP SIGNATURE-----