[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] condition: OR of two string comparisons
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] condition: OR of two string comparisons |
Date: |
Fri, 07 Nov 2014 16:16:38 +0000 |
Hi Holger,
> Due to the 'Troff User's Manual' page 24 and the man 7 groff (missing
> a negation)
What's missing?
> the statement:
>
> .if 'str1'str2' anything
>
> cannot handle regular expressions or kinda glob-ing as patterns?
Correct. It's not a simple string compare though, groff's info manual
explains more.
info groff 2>/dev/null |
sed -n '/Node: Operators in Conditionals/,/^File:/p'
You can get close with De Morgans to turn a|b into !(!a&!b) and chain
two .ifs to do the & with the first being a .ie so the .el mops up, but
it misses one of the cases.
BTW, do any info experts know how to have info(1) format just that node?
-n doesn't work to visit that node, it thinks it doesn't exist even
though it's printing that as the node name. I guess it's looking
somewhere else for -n.
$ info -n 'Operators in Conditionals' groff
info: Cannot find node `Operators in Conditionals'.
$
Cheers, Ralph.
- [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, 2014/11/07
- Re: [Groff] condition: OR of two string comparisons,
Ralph Corderoy <=
- 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
- Re: [Groff] condition: OR of two string comparisons, Steffen Nurpmeso, 2014/11/13