[BusyBox] Patch to improve xargs -n behaviour

Vladimir N. Oleynik dzo at simtreas.ru
Mon Dec 15 13:11:40 UTC 2003


Stewart,

>>>Please find attached a patch for findutils/xargs.c to fix the behaviour
> 
> of
> 
>>>the -n option to be more like the version in GNU findutils.
>>
>>Hmm. I reanalised findutils-1.4.7. xargs utility from this package not
>>analise max_chars execeed from reading process. I think, may be rewrite
>>logic: counting max_chars form process_stdin() to counting max_args. This
>>not added size vs your patch. Let me know what you think Stewart.
> 
> 
> I think it would be a mistake to not count characters.  That counting must
> have been in there for a purpose - presumably to allow you to avoid some
> system limit on some systems.  

The max_chars limit checked before execute command, but not from reading processing
in findutils-1.4.7 xargs.
For example your test: "(date; sllep2;) ..." full readed with all sleeping and 
after only send
"out limit max chars ... bal-bla".


--w
vodz








More information about the busybox mailing list