From 3ddaa86ba2cfb019683fd1c0f474c80d85fceb89 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 24 Apr 2017 14:21:43 -0700 Subject: [PATCH] doc: make the %! (environment variable) construct a little clearer Make the %! construct a little more clear. Signed-off-by: H. Peter Anvin --- doc/nasmdoc.src | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index 1dfb021d..cd979f37 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -3706,16 +3706,16 @@ all file name and line numbers relative to the values specified therein. -\S{getenv} \i\c{%!}\c{}: Read an environment variable. +\S{getenv} \i\c{%!}\e{variable}: Read an Environment Variable. -The \c{%!} directive makes it possible to read the value of an +The \c{%!}\e{variable} directive makes it possible to read the value of an environment variable at assembly time. This could, for example, be used to store the contents of an environment variable into a string, which could be used at some other point in your code. -For example, suppose that you have an environment variable \c{FOO}, and -you want the contents of \c{FOO} to be embedded in your program. You -could do that as follows: +For example, suppose that you have an environment variable \c{FOO}, +and you want the contents of \c{FOO} to be embedded in your program as +a quoted string. You could do that as follows: \c %defstr FOO %!FOO -- 2.11.4.GIT