blob: fedb4d819303a6f5ef4ba0df761fa1a7412d3798 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
.\" $OpenBSD: string.in,v 1.5 2022/06/03 11:50:25 schwarze Exp $
.TH STRING 1 "June 3, 2022"
.SH NAME
string \- conditional testing whether a string is defined
.SH DESCRIPTION
.ie d mystr OOPS
.el mystr not yet defined
.br
.ds mystr mystrval
.ie d mystr now defined
.el OOPS
.if !d mystr OOPS
.PP
.ie d mymac OOPS
.el mymac not yet defined
.br
.de mymac
mymacval
..
.ie dmymac now defined
.el OOPS
.if !d mymac OOPS
.PP
.ie d myren OOPS
.el myren not yet defined
.br
.rn SM myren
.ie d myren now defined
.el OOPS
.if !d myren OOPS
.PP
standard macro is
.ie d PP defined
.el not defined \(em OOPS
.PP
identifier and tab:
.ie d mystr mystr is defined
.el OOPS
.PP
escape sequence after identifier:
.ie d mystr\(enmystr is defined
.el OOPS
.PP
backslash in name:
.ds \\ value
.ie d \\ \e is defined
.el OOPS
.rm \\
.if d \\ still defined!?
.PP
dot in name:
.ds . value
.ie d . \&. is defined
.el OOPS
.ie d \. \e. is defined
.el OOPS
.rm .
.if d . still defined!?
.PP
invalid escape in name:
.ds G value
.ie d G G is defined
.el OOPS
.ie d \G \eG is defined
.el OOPS
.rm \G
.if d G still defined!?
|