summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Sm/scope.in
diff options
context:
space:
mode:
Diffstat (limited to 'regress/mdoc/Sm/scope.in')
-rw-r--r--regress/mdoc/Sm/scope.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/regress/mdoc/Sm/scope.in b/regress/mdoc/Sm/scope.in
new file mode 100644
index 00000000..76ce050b
--- /dev/null
+++ b/regress/mdoc/Sm/scope.in
@@ -0,0 +1,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, ...