Article View: comp.text
Article #2552Re: ISC 2.0.2 troff broke? (groff as well?)
From: Vidiot
Date: Tue, 26 Feb 1991 08:03
Date: Tue, 26 Feb 1991 08:03
30 lines
1685 bytes
1685 bytes
In article <1434@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:
<
<I am running ISC 2.0.2 Unix and ISC text processing package. When I have
<the following line, with neither of the registers set on the command line:
<
< .if \nG==1&\nI==0 \{\
< .tm inside coverdef G=\nG I=\nI
<
<It gets past the if statement and shows that both registers are indeed zero.
<
<If I change the order of the test, like this:
<
< .if \nI==0&\nG==1 \{\
< .tm inside coverdef G=\nG I=\nI
<
<It doesn't get to the next statement, just as I would expect. If I do -rG1
<on the command line, then it gets past the if statement, as I expected.
<
<What the Hell is going on here? Is the ISC version of DWB 2.0 broke?
As it turns out, groff 1.00 does the same thing. Why is the order of testing
important?
BTW, just in case it needs to be said exactly what I want to happen, what I am
after is that the code after the if statement will only be executed IF the
I number register is equal to a 0 AND the G number register is equal to a 1.
--
harvard\ att!nicmad\ spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot ucbvax!uwvax..........!astroatc!vidiot!brown
rutgers/ decvax!nicmad/ INTERNET:vidiot!brown%astroatc@spool.cs.wisc.edu
Technical Details
Message-ID:
<1435@vidiot.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!astroatc!vidiot!brownReferences:
<1434@vidiot.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!astroatc!vidiot!brown From: brown@vidiot.UUCP (Vidiot) Newsgroups: comp.text Subject: Re: ISC 2.0.2 troff broke? (groff as well?) Message-ID: <1435@vidiot.UUCP> Date: 26 Feb 91 08:03:42 GMT References: <1434@vidiot.UUCP> Reply-To: brown@vidiot.UUCP (Vidiot) Organization: Vidiot's Hangout Lines: 30