groff
[Top][All Lists]
Advanced

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

Re: [Groff] condition: OR of two string comparisons


From: hohe72
Subject: Re: [Groff] condition: OR of two string comparisons
Date: Fri, 7 Nov 2014 08:27:11 +0100

Ralph Corderoy <address@hidden> wrote (Thu, 06 Nov 2014 16:35:23
+0000):
> Hi Holger,
> 
> > .\" I found this for strings
> > 
> > .ds c "
> > .ds d "
> > .if '\*c'foo' .ds d "bar
> > .ie '\*d'bar' .tm *9: true
> > .el           .tm *9: false
> 
> If you want to preserve d's value for later use then you're back to
> using a temporary variable to track success so far.
> 
> Cheers, Ralph.

Yes.

Due to the 'Troff User's Manual' page 24 and the man 7 groff (missing
a negation), the statement:

.if 'str1'str2' anything

cannot handle regular expressions or kinda glob-ing as patterns?

Holger



reply via email to

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