[PATCH 27/40] xargs/xargs.1: Fix truncated examples on old troff

"G. Branden Robinson" <[email protected]> Thu, 13 Nov 2025 10:49:39 -0600
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <20251113164939.ndth7eczncvqudvh@illithid>
Seventh Edition Unix man(7)[1] and its descendants handle at most six
arguments to macros.  Excess arguments are ignored and not formatted.

[1] https://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/lib/tmac/tmac.an
---
 xargs/xargs.1 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/xargs/xargs.1 b/xargs/xargs.1
index b0ed4b55..0de9fadb 100644
--- a/xargs/xargs.1
+++ b/xargs/xargs.1
@@ -391,7 +391,7 @@ .SH OPTIONS
 .
 .SH "EXAMPLES"
 .nf
-.B find /tmp \-name core \-type f \-print | xargs /bin/rm \-f
+.B "find /tmp \-name core \-type f \-print | xargs /bin/rm \-f"
 .fi
 .P
 Find files named
@@ -403,7 +403,7 @@ .SH "EXAMPLES"
 any filenames containing newlines or spaces.
 .
 .P
-.B find /tmp \-name core \-type f \-print0 | xargs \-0 /bin/rm \-f
+.B "find /tmp \-name core \-type f \-print0 | xargs \-0 /bin/rm \-f"
 .P
 Find files named
 .B core
@@ -413,7 +413,7 @@ .SH "EXAMPLES"
 directory names containing spaces or newlines are correctly handled.
 .
 .P
-.B find /tmp \-depth \-name core \-type f \-delete
+.B "find /tmp \-depth \-name core \-type f \-delete"
 .P
 Find files named
 .B core
@@ -432,7 +432,7 @@ .SH "EXAMPLES"
 .
 .P
 .nf
-.B cut \-d: \-f1 < /etc/passwd | sort | xargs echo
+.B "cut \-d: \-f1 < /etc/passwd | sort | xargs echo"
 .
 .fi
 Generates a compact listing of all the users on the system.
-- 
2.30.2
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmkWDCMACgkQ0Z6cfXEm
bc7PsA/+Ifj6wr9SyDrSDDMYPigueU4+5bK56+puPqahAXPAtkJPbnIoW/McpYhp
OSa5PzLIdaEGRoiyOPoV23qHN7R4EWn+x9+0Jrlc2Yp/m0DQktq2CbdSHNezCoEH
KFrYqCIsn0gaXOpKmw0SgjVTzu11zG9KGkwhB5fh/C3Za5OpmX3I8vsCjp5c07Mh
K38Pj4SH1KWEX6JGGws+mVXH3AE/3cgur7nTPS5selWW9f3iJ+eoAT62PYBdIhlp
ResNXyRgGOrsaQjtyZdCpVkPWkAUkzPsFvcG8f6EQJHZGv7YC3w2W5MlFvYoO728
0z4Qbd4LD40p3fNtpboWJ8Inahn85fSbK7c4u1HPr5ldfTDY6PW2e0tCqAFPsgkT
xnTnceb5Vr60WC3qhJgJJTyi1meW76CE9xU+0IP0Gb3O08N9jCID9jO7PRIVb3Ov
QmhGYHJoqZE6qzjnzO/SLj6bQT1YZEFepNs5jrTAjYDw++4dD++yZWQ+eZEuQw/J
qdGVtXqWXaVFCamE6ChXEyVTMICtOrek0ZqdNAXS1LybQQWndYf/K+dNKc94pgaf
+/60eina+x1NG/2V+OU2ch3TErd5tfEV6oeRf9/p6jxxp/i32rXBHnPuWaP2gcZo
Vf1AvtSIfNHavP07jofFfrvhBGKVrwolMXxyxeoeki1seqYrzIo=
=Pta4
-----END PGP SIGNATURE-----