Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site ittatc.ATC.ITT.UUCP Path: utzoo!decvax!ittatc!yoda From: yoda@ittatc.ATC.ITT.UUCP (Todd C. Williams) Newsgroups: net.unix-wizards,net.unix Subject: QUESTION: ">>" in nroff macros Message-ID: <1750@ittatc.ATC.ITT.UUCP> Date: Tue, 5-Aug-86 19:30:18 EDT Article-I.D.: ittatc.1750 Posted: Tue Aug 5 19:30:18 1986 Date-Received: Tue, 5-Aug-86 21:41:47 EDT Distribution: na Organization: ITT-ATC, Shelton Ct. Lines: 47 In trying to solve a problem with macro recursion caused be traps, I have been looking through the -me macros. I have come across many examples of something I have never seen before, nor can I find anywhere in the documentation. The declaration of the "end page" macro, for example, goes something like: .de @e \" --- end page .if \n@>2 .tm >> @e etc.. (another macro invoked on this line) What does this if line do???? Let's translate to English: IF the contents of the number register '@' is greater than 2 THEN send terminal message .......? 1. what does the number register '@' contain? 2. WHAT DOES '>>' do? if I put the line '.tm >> @e' somewhere other than WITHIN the macro, the string '>> @e' is simply printed on the terminal, but it behaves differently within the macro. 3. why is it '>> @e' from within the macro '@e'? This kind of stuff happens all over the -me macros, with '>>', '<<', and sometimes '--'. Please mail responses directly, whether or not you also post them, as this is not my site. Thanks in advance. +------------------------------------------------------------------------------+ | Todd C. Williams | "Summer blonds | | ITT Defense Communications | revealing tan lines, | | Nutley, NJ | I'll make more moves than | | {decvax, et al.}!ittatc!dcdvaxb!tcw | ALLIED VAN LINES!" | | +1 201 284 3305 | --from: "I wanna be a lifeguard" | | I love to receive e-mail! | by BLOTTO | +------------------------------------------------------------------------------+ -- +------------------------------------------------------------------------------+ | Todd C. Williams | "Summer blonds | | ITT Defense Communications | revealing tan lines, | | Nutley, NJ | I'll make more moves than | | {decvax, et al.}!ittatc!dcdvaxb!tcw | ALLIED VAN LINES!" | | +1 201 284 3305 | --from: "I wanna be a lifeguard" | | I love to receive e-mail! | by BLOTTO | +------------------------------------------------------------------------------+