Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
[opensuse] Re: /bin/rm: Argument list too long
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Fri, 28 Mar 2008 12:48:40 +0100
  • Message-id: <fsiluo$qnm$1@xxxxxxxxxxxxx>
Wolfgang Woehl wrote:
Randall R Schulz:

There's no way for xargs to know about anything other
than the kernel-imposed argument list size limit.

Where can I read the argument list size limit? I fail to see anything relevant with ulimit -a or in proc or in pam's limits.conf.

You can get them via sysconf. It's rather complicated, man sysconf will give you a start. The limit is not about the count of arguments, but about the total size of arguments and environments alike.

You have to look for the *ARG_MAX configuration values. Make also sure to read the BUGS section where you learn that xargs has to take into account the space for the environment, too.

To get the real portable beef, you'll have to look up the POSIX.1 definition. Probably you'll find one at Single Unix Specification, which includes POSIX.1:


Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >