[Bug 273196] xargs(1) fails for a command line shorter than 200 chars: xargs: command line cannot be assembled, too long

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Aug 2023 06:32:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273196

--- Comment #3 from Yuri Victorovich <yuri@freebsd.org> ---
Yes, it has one argument.

I think it would be a good improvement to get rid of the -S limit.
Currently xargs's manpage says:
>     -S replsize
>             Specify the amount of space (in bytes) that -I can use for
>             replacements.  The default for replsize is 255.

It isn't clear why should this limit even be applied. The limitation should be
the same as the limitation that the system imposes on the command line length
that can be run.

It isn't beneficial for xargs(1) to have another, lower limit in case when
replacements are done.

I found this problem when xargs failed during tests of devel/util-linux. xargs
is used there and the tests run fine on Linux, but they fail on FreeBSD due to
this problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.