aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Sm/scope.in
blob: 76ce050bd6d115690cb5f556d20d64c201738fec (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
.Dd January 2, 2010
.Dt SM-SCOPE 1
.Os OpenBSD
.Sh NAME
.Nm Sm-scope
.Nd scope of the spacing macro
.Sh DESCRIPTION
Using an abbreviated example from the
.Xr ksh 1
manual.
.Pp
Modifiers can be applied to the
.Pf ${ Ns Ar name Ns }
form of parameter substitution:
.Bl -tag -width Ds
.Sm off
.It ${ Ar name No :- Ar word No }
.Sm on
If
.Ar name
is set and not
.Dv NULL ,
it is substituted; otherwise,
.Ar word
is substituted.
.El
.Pp
In the above modifiers, the
.Ql \&:
can be omitted, ...