aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Sm/scope.in
blob: 26e321dd8aef69f6f8c81fc467e5db8e457d7cc2 (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
.\" $OpenBSD: scope.in,v 1.4 2017/07/04 14:53:26 schwarze Exp $
.Dd $Mdocdate: July 4 2017 $
.Dt SM-SCOPE 1
.Os
.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, ...