Subject: Re: bug#28082: bash: /bin/rm: Argument list too long

From: Jonny Grant <[email-masked]>
Date: Sat, 26 Aug 2017 10:39:00 +0300

On 26/08/17 08:45, L A Walsh wrote:
> Dmitry V. Levin wrote:
>> It's a security limit rather than a fixed buffer, see e.g.
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=da029c11e6b12f321f36dac8771e833b65cec962 
>>
>>
>>
> Hmm,  original poster had about 2.3MB of data.
> The patch referenced above says to limit arg stack usage to at
> most 75% of _STK_LIM (6MB), or about 4.5MB.
> 
> Ah... also, 25% of your stack limit.  Mine's 8M, so that wouldn't allow
> for 2.4MB of args.  You might get that specific case to pass
> if you increased your stack limit(?), but it still would be
> a problem in the general case.

I don't know if there is a way that Bash, could split up the long 
argument lists to workaround a known limit. eg using xargs

Regards, Jonny