[BusyBox] Re: xargs patch again

Vladimir N. Oleynik dzo at simtreas.ru
Tue Jan 20 14:00:55 UTC 2004


Stewart,

>>>>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.
>>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".
> 
> 
> Sorry, I don't understand.  I've just tried a Linux box with
> findutils-1.4.7-4 RPM installed on it (was using 1.4.6 earlier) and seen no
> difference in behaviour.  I've made the test slightly better (this still
> assumes you get 6 words of output from the date command):
> 
> $ for i in 1 2 3 4 5; do date; date; sleep 3; done | xargs -n 6 echo

"-n" option work as this.
But "-s" option have problem with immediately break after overflow.
I realise (form current busybox xargs) reverse logic:
-s max_chars work without sleep, but -n max_arg sleeping for your examples.


--w
vodz




More information about the busybox mailing list