[Bug 273196] xargs(1): remove the limitation on the length of strings with replacements

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 25 Aug 2023 15:53:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273196

--- Comment #7 from Fernando ApesteguĂ­a <fernape@FreeBSD.org> ---
I can't reproduce this. When I execute the testcase, this is what I get:

~/test$ sh run.sh 
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
'{}'

The second replstr is not replaced.

If I shorten the match string, then both are replaced.

~/test$ sh run.sh 
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

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