diff options
author | 2022-05-30 23:03:47 +0000 | |
---|---|---|
committer | 2022-05-30 23:03:47 +0000 | |
commit | da6633e8c5db9f71ef2499ad46bc43e3854c2ac9 (patch) | |
tree | dc16ff25d96062244163d68f4ecdbe27a4f1f465 /roff.7 | |
parent | 47b136859c01b58c485871ddf294a613d823ece4 (diff) | |
download | mandoc-da6633e8c5db9f71ef2499ad46bc43e3854c2ac9.tar.gz mandoc-da6633e8c5db9f71ef2499ad46bc43e3854c2ac9.tar.zst mandoc-da6633e8c5db9f71ef2499ad46bc43e3854c2ac9.zip |
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.
Diffstat (limited to 'roff.7')
-rw-r--r-- | roff.7 | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 <schwarze@openbsd.org> .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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 . |