diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
commit | 4c0770c1ecd159a77561d8e0364385f4bb758650 (patch) | |
tree | 5c2d5820b093c1c08b6047ff110e9b055083a5ea /regress/mdoc/Sm/scope.in | |
parent | d16e7f2cf346476e177ce672851b0b957aebbe5d (diff) | |
download | mandoc-4c0770c1ecd159a77561d8e0364385f4bb758650.tar.gz |
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.
Diffstat (limited to 'regress/mdoc/Sm/scope.in')
-rw-r--r-- | regress/mdoc/Sm/scope.in | 30 |
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, ... |