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