groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] \V[envvar]: is/was there a "does-exist" concruent to 'getenv


From: Steffen Nurpmeso
Subject: Re: [Groff] \V[envvar]: is/was there a "does-exist" concruent to 'getenv(VAR) != NULL'?
Date: Wed, 14 Jan 2015 12:51:48 +0100
User-agent: s-nail v14.7.11-120-gd7614ed

Werner LEMBERG <address@hidden> wrote:
 |> but what i really would like to do is rather
 |>
 |>   .if !d \V[GROFF_NO_MDOCMX]
 |>
 |> so to be synchronous with $GROFF_NO_SGR.  Well i am, but only on
 |> grotty(1) level, not in the macros, which is odd.
 |> Wouldn't it be, even more, natural to be able to use "d" for that?
 |
 |\V always returns a string.  If the environment variable is not
 |defined, it returns an empty string.

 |It might be possible to create another interface to environment
 |variables, but I strongly doubt that it is worth the trouble.

And it's not that alone, it is also that "-dSTRING" doesn't work
as expected, it has to be "-dSTRING=VALUE", even though ".ds
STRING" will do.  I have to look into that.

--steffen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]