]> git.ipfire.org Git - thirdparty/coreutils.git/commit
wc: read and process --files0-from= input a name at a time,
authorJim Meyering <meyering@redhat.com>
Tue, 25 Nov 2008 17:38:26 +0000 (18:38 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 2 Dec 2008 12:12:22 +0000 (13:12 +0100)
commitc2e56e0de7d86bdc0f824d758a7efde4d5d7b235
treeacd3e00bd616d75dccf110ef810a9e74a1c787d3
parent031e2fb5e9501fb9cda4d739a92abb02e2b05a52
wc: read and process --files0-from= input a name at a time,

when the file name list is not too large.  Before, wc would always read
the entire file name list into memory and *then* process each file name.
wc does read the list into memory when the list is known not to be too
large; this is done in order to be able to align the output numbers,
as it does with arguments specified on the command-line
* src/wc.c: Include "argv-iter.h".
(main): Rewrite to use argv-iter when the input file name list
is known to be too large.
* NEWS (Bug fixes): Mention it.
NEWS
src/wc.c