[PATCH 30/42] xargs.1: fix truncated examples on old troff

"G. Branden Robinson" <[email protected]> Tue, 18 Nov 2025 21:48:38 -0600
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <20251119034838.yzcpx5qembj6mgq2@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 b6c2a786..a5dc2313 100644
--- a/xargs/xargs.1
+++ b/xargs/xargs.1
@@ -390,7 +390,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
@@ -402,7 +402,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
@@ -412,7 +412,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
@@ -431,7 +431,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-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmkdPhYACgkQ0Z6cfXEm
bc4+vBAAoaNLErlmNBaPtfvSBceWzjIxrFMSkZl8EgLYFcmHzyKPsDZeraRxgU7R
ciT6WtSHcKqnEu4S+gdB9TWHW3dlD/Na99K1APQMVung1vaUjEuBgyNJrDPcliyF
6SjosulsIqS5pKenYMuHm2NuAfC0y1N1oLcfKkL0RVAFsZaQSvaP+vp5Hxn01WjU
FXD57kwr6aJtQdINiSn4XsTX9aKuRQHowYswnRR3HfFymkBX7LD4u7PQ7G22yeNA
kq/PJTMZhoA8bdABfpoojoRcS/TvabC0t9L42yX1zGlr/Zx7gqA8lH3m9aV3Y37K
7r3gam0kkvlCu/UqhrgpkUiY1vFoDS1VAmZkiNJFz/H+E085A57/Snf2CEkonckQ
VRD7q7u0pvjAtqnr6xMqWqV9oVrH2ylj/EnDBySwaS+eBAtxgLfMwOcEnFTbVrLE
wCGjsq1jay8Z5rDekr44d4gZiBpQXp9pTpy8qwacjFZKFiGBz2D5hywFlHZInBwp
6a+ZilDqyuz7uxT5ltCXUVepckdkQBj9RNoRWJmNyEhAZiGop+dc76l0sMj9KOWQ
sH/JGx+7pF3isc4lAmOeeFotfZ2nRGXY96Z2oNmeQKQWQuc8O828j5brSzk13HKd
CgioOaLE1UpNixPDDP1ijiQMO0OM1b4pHALozTY+mUdU7iS+u58=
=QXSD
-----END PGP SIGNATURE-----