[PATCH 18/40] find/find.1: Access ~ character portably.

"G. Branden Robinson" <[email protected]> Thu, 13 Nov 2025 10:48:16 -0600
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <20251113164816.u5njbo73bz4wi3ew@illithid>
The `\(ti` special character escape sequence is not universally
portable.  Indirect it through a string definition.  (GNU Bash also uses
this technique.[1])

[1] https://github.com/bminor/bash/blob/a8a1c2fac029404d3f42cd39f5a20f24b6e4fe4b/doc/bash.1#L26
---
 find/find.1 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/find/find.1 b/find/find.1
index 6bae3cf2..b5f7a8cc 100644
--- a/find/find.1
+++ b/find/find.1
@@ -3,12 +3,14 @@
 .ie \n(.g \{\
 .  ds "  \(dq
 .  ds '  \(aq
+.  ds ~  \(ti
 .  ds en \(en
 .\}
 .el \{\
 .  \" \*" is not usable in macro arguments on AT&T troff.
 .  ds "  ""\" two adjacent quotes and no space before this comment
 .  ds '  '
+.  ds ~  ~
 .  ds en \-
 .\}
 .SH NAME
@@ -2520,7 +2522,7 @@ .SS Traversing the filesystem just once \(em for 2 different actions
 but omit files and directories named
 .I .snapshot
 (and anything in them).  It also omits files or directories whose name ends in
-`\(ti', but not their contents.
+`\*~', but not their contents.
 .nf
 \&
 .in +4n
-- 
2.30.2
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmkWC9AACgkQ0Z6cfXEm
bc4YWA/9F+U8W9xcnoDVrszuFhpjJXdCVAR7YzK0LO/i6nQ3ZnWChCClXqlzuPS2
DZTqZq2MME3w6QY3buFRM0vZ36+lg4xV5rkrNOHg7y66RvaBdCJ+MNGSZdpDzweK
0CMyokhtmxuyPERCGG3ZdoE/QDdzqR7qf+C7ow4ikZ2v1MI0d5CJC0DSt6Ojgh4+
2FMPWgubyBKaxCIb2Txu3HGvH+TyP1zB9TZyiFjxS/dpkUD+QkEEXg4LyITcd/sQ
gkU/YU9fGq+s1rIw3TSThDTUtt3WGeLeLGC9V94lVWAp4YCn84Ght+nm0EzsIk8i
hXdEVOCFUD4DEcIqFIGoxIo2SBi4b28o+9jgF7i0vcIqUa3880WwhbG/RfK2M9UI
6iMG8KmWid5ofDiB0D/44/5B8OrVmIHIISvuaWKbRU42zsyreFNgCtq82YDxu260
r8OhtWORQCGZbYsezQ5+1AzQQBb2sdPNq8IMeG5L1KFKSU+qeysDv1I2LbFkZaTj
81ssxOZuMo4SAGb76qcY26y9LxJmtz4g5SWhyVS/st6rOdoXVBpB1a74j7mWvYmq
NqxOHK4Pb3O7okVgfO8wRTUl4+tDha9x5aRig40RWMTkMbYfyzXQq7MUHROfqSFP
d8Dbd9zMqQWNmfUKCvm8wHG75mODT5vlVjz62x9CsCiXaO68/Jg=
=bPdc
-----END PGP SIGNATURE-----