[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
- [Groff] condition: OR of two string comparisons, hohe72, 2014/11/05
- Re: [Groff] condition: OR of two string comparisons, Ralph Corderoy, 2014/11/06
- Re: [Groff] condition: OR of two string comparisons,
hohe72 <=
- Re: [Groff] condition: OR of two string comparisons, Ralph Corderoy, 2014/11/07
- Re: [Groff] condition: OR of two string comparisons, Werner LEMBERG, 2014/11/07
- Re: [Groff] condition: OR of two string comparisons, Dale Snell, 2014/11/07
- Re: [Groff] condition: OR of two string comparisons, hohe72, 2014/11/12
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/13
- Re: [Groff] condition: OR of two string comparisons, Tadziu Hoffmann, 2014/11/13
- Re: [Groff] condition: OR of two string comparisons, Ralph Corderoy, 2014/11/13
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/13
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/13
- Re: [Groff] condition: OR of two string comparisons, Ralph Corderoy, 2014/11/13