On Tue, 6 Apr 2010, Werner LEMBERG wrote:

I know this is wrong
Would someone fix it

.ds a foo
.ds b bar
.
.if d a & d b \{\
\*[a] \*[b]
.\}

Richard


Solution:

.ds a foo
.ds b bar
.
.if d a \
.  if d b \{\
\*[a] \*[b]
.\}

From groff.info, section `Operators in Conditionals':

 Note that these operators [like `d'] can't be combined with other
 operators like `:' or `&'; only a leading `!' (without whitespace
 between the exclamation mark and the operator) can be used to negate
 the result.


    Werner


bummer


Reply via email to