summaryrefslogtreecommitdiffstats
path: root/apropos.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-03-30 16:06:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-03-30 16:06:14 +0000
commit6fba6ed1cc652a2bab19a123a1f0cafdf302653a (patch)
tree7386c41abd9b4801b3bb22eea917c75ea01700a0 /apropos.1
parent5f0994551170b5b1f082e538e072b3f0b4ce9c21 (diff)
downloadmandoc-6fba6ed1cc652a2bab19a123a1f0cafdf302653a.tar.gz
Escape punctuation characters that have a different meaning in -Tpdf.
~, `, and ' get translated to non-ASCII characters by most troff implementations when generating PostScript/PDF output. When the original ASCII character is meant, it needs to be manually escaped. Patch from bentley@.
Diffstat (limited to 'apropos.1')
-rw-r--r--apropos.112
1 files changed, 6 insertions, 6 deletions
diff --git a/apropos.1 b/apropos.1
index 25942e58..a2848f7b 100644
--- a/apropos.1
+++ b/apropos.1
@@ -210,7 +210,7 @@ This has syntax
.Sm off
.Oo
.Op Ar key Op , Ar key ...
-.Pq Cm = | ~
+.Pq Cm = | \(ti
.Oc
.Ar val ,
.Sm on
@@ -227,7 +227,7 @@ for a list of available keys.
Operator
.Cm =
evaluates a substring, while
-.Cm ~
+.Cm \(ti
evaluates a regular expression.
.It Fl i Ar term
If
@@ -398,7 +398,7 @@ as well:
.Pp
Search in names and descriptions using a regular expression:
.Pp
-.Dl $ apropos '~set.?[ug]id'
+.Dl $ apropos \(aq\(tiset.?[ug]id\(aq
.Pp
Search for manuals in the library section mentioning both the
.Qq optind
@@ -413,15 +413,15 @@ Do exactly the same as calling
with the argument
.Qq ssh :
.Pp
-.Dl $ apropos \-\- \-i 'Nm~[[:<:]]ssh[[:>:]]'
+.Dl $ apropos \-\- \-i \(aqNm\(ti[[:<:]]ssh[[:>:]]\(aq
.Pp
The following two invocations are equivalent:
.Pp
.D1 Li $ apropos -S Ar arch Li -s Ar section expression
.Bd -ragged -offset indent
.Li $ apropos \e( Ar expression Li \e)
-.Li -a arch~^( Ns Ar arch Ns Li |any)$
-.Li -a sec~^ Ns Ar section Ns Li $
+.Li -a arch\(ti^( Ns Ar arch Ns Li |any)$
+.Li -a sec\(ti^ Ns Ar section Ns Li $
.Ed
.Sh SEE ALSO
.Xr man 1 ,