[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] number register to check if running in unsafe mode?
From: |
Dorai Sitaram |
Subject: |
Re: [Groff] number register to check if running in unsafe mode? |
Date: |
Tue, 26 Feb 2008 11:07:17 -0800 (PST) |
Thanks!
Now, unless I'm misreading the intent, the documented \n[.U] is ascribed
behavior opposite to what actually happens. According to the manual, "If
gtroff is called with the -U command line option, the number register .U is set
to 1, otherwise to zero."
On groff 1.19.3 (on Solaris), I used an example file k.1 with the following two
lines:
.sy pwd
.tm \\n[.U] is \n[.U]
I then got the following with and without -U respectively:
% groff -Uz k.1
/home/ds26
\n[.U] is 0
% groff -z k.1
k.1:1: .sy request not allowed in safer mode
\n[.U] is 1
Either the doc or the progam should change, no?
--d
----- Original Message ----
From: Werner LEMBERG <address@hidden>
Sent: Tuesday, February 26, 2008 5:50:15 AM
> > After checking the docs, it doesn't seem like groff offers a
> > register or any other way for checking if it is being run in
> > unsafe mode.
>
> Check the \n[.U] register.
BTW, this has been introduced in version 1.19.1.
Werner
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs