From d9f0f81c846a8405c29870e4a8379e5e79d1cad3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Feb 2017 03:02:13 +0000 Subject: Finally port the OpenBSD regression suite. Both kristaps@ and wiz@ repeated asked for this, literally for years. --- regress/mdoc/Sm/scope.in | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 regress/mdoc/Sm/scope.in (limited to 'regress/mdoc/Sm/scope.in') 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, ... -- cgit v1.2.3-56-ge451