Hi Roman, > May I ask you to review what way we should go with ARG_MAX? > > I'm okay with both ways whether it's: > * computing effective argument length and passing it to "-s" option; > * or exploiting behaviour of GNU/BSD xargs and specifying "-n" beyond > the limit.
Use the approach that makes the least undocumented assumptions. In other words, rely on what the documentation says and on nothing else. The relevant documentation here is POSIX [1]. Bruno [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html