[PATCH 20/42] find.1: access ~ character portably

"G. Branden Robinson" <[email protected]> Tue, 18 Nov 2025 21:47:05 -0600
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <20251119034705.cfw4qf4yflnlnlu6@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 69387cdb..efe5987a 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
@@ -2515,7 +2517,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-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmkdPbkACgkQ0Z6cfXEm
bc49pw//cUWmUFyt1YWDvDUWXtZe3oqpiV1B18oIe/khCoLJWZVV3+e1A2zhdqTf
3jSGelBAosoBRDwvJj9mX7cB3GJhwLAcMIg9DL7NzUxG9GLRBIg7p53B4KBItN+a
DwZVfRtvzZhRlrTa6/e6kGc3KZl3bSKOdVTtI+FpnaZyCaABqBUwA/+zzxmQ2ce6
LmrYlFwaf7Ixj2SqKZAEv5josLoHA8/pQ98yqB11bb3YB7MDWZoZwdTed+KiW7AD
uZpc87ZbFWDqX667LF2FnnrJM3YVdoC+BGaggW1rAN24RhC9yLP9XTWIoGOpGLAj
xgnfX4TFJvGrI6/PesUMqsocEGyHJgVpoDbG9GDnwSfum21cmVINWzNEK8cMORgw
v+v/HvCYVFe8AbbEaOZCYA1Cx6Pgl1/zFLobADXfg/y4y24BWEsKQe+RT5WXV+lG
S4XUbZAr9rpMaYfzpdmW7PV2JsUUVUUgOMn13ZtNGFU0NFmXWbLVOCDUSJUN81Zj
PvUEAvFWkfx3ALQ1RLW5EZJwSenaX+ic2HP+2UvlUaV6IuAdScowDvX3g5koCrXC
Vg38vmPddQdw39jN9fDxAiKRy/DQ6gMihxWCoX+dqqS5k78M9M1oYhmv/aqHQBv2
xvIFsl7oNZVvCw0nBAiHe/01zLts04FvxiAUN7WAdfgV29TuD0c=
=YTLd
-----END PGP SIGNATURE-----