From da6633e8c5db9f71ef2499ad46bc43e3854c2ac9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 30 May 2022 23:03:47 +0000 Subject: Dummy implementation of the roff(7) \V (interpolate environment variable) escape sequence. This is needed to get \V into the correct parsing class, ESCAPE_EXPAND. It is intentional that mandoc(1) output is *not* influenced by environment variables, so interpolate the name of the variable with some decorating punctuation rather than interpolating its value. --- roff.7 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'roff.7') diff --git a/roff.7 b/roff.7 index 6ca3029d..6ebde4ff 100644 --- a/roff.7 +++ b/roff.7 @@ -1,4 +1,4 @@ -.\" $Id: roff.7,v 1.117 2022/05/20 13:09:13 schwarze Exp $ +.\" $Id: roff.7,v 1.118 2022/05/30 23:03:47 schwarze Exp $ .\" .\" Copyright (c) 2010-2019, 2022 Ingo Schwarze .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 20 2022 $ +.Dd $Mdocdate: May 30 2022 $ .Dt ROFF 7 .Os .Sh NAME @@ -2188,12 +2188,16 @@ Horizontal tab; ignored by Move up by half a line; ignored by .Xr mandoc 1 . .It Ic \eV[ Ns Ar name Ns Ic \&] -Interpolate an environment variable; ignored by -.Xr mandoc 1 . +Interpolate an environment variable. For short names, there are variants .Ic \eV Ns Ar c and .Ic \eV( Ns Ar cc . +This escape sequence is intentionally unsupported; +.Xr mandoc 1 +prints the string +.Dq Pf $ Brq Ar name +instead of inspecting the environment. .It Ic \ev\(aq Ns Ar number Ns Ic \(aq Vertical motion; ignored by .Xr mandoc 1 . -- cgit v1.2.3