aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/string/undef.in
blob: d84a67c6d84bfa2cc65b5e75bf453874b79f6f89 (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
68
69
.\" $OpenBSD: std.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $
.TH STRING-UNDEF 1 "April 9, 2018"
.SH NAME
string-undef - expanding undefined strings
.SH DESCRIPTION
.SS User defined string
The sting "mys" is
.ie dmys defined
.el undefined
and remains
.ie dmys defined.
.el undefined.
.PP
Its value is "\*[mys]", and now it is
.ie dmys defined,
.el undefined,
and its value is still "\*[mys]".
.PP
.ds mys newval
After redefining it to "\*[mys]", it is of course still
.ie dmys defined.
.el undefined.
.PP
.rm mys
After removing the definition, it is now
.ie dmys defined.
.el undefined.
.SS User defined macro
The macro "mym" is
.ie dmym defined.
.el undefined.
.PP
It has no effect:
.mym
But now it is
.ie dmym defined.
.el undefined.
.PP
.de mym
neweffect
..
After defining it as:
.mym
it is of course still
.ie dmym defined.
.el undefined.
.PP
.rm mym
After removing the definition, it is now
.ie dmym defined.
.el undefined.
.SS Renamed macro
The standard .BR macro is
.ie dBR defined,
.el undefined,
and it
.BR works .
.PP
.rn BR newBR
After renaming it, the new name is
.ie dnewBR defined,
.el undefined,
and
.newBR works .
.SS Predefined string
A predefined string is
.ie dR defined
.el undefined
and has the value "\*R".