On 1/18/21 3:09 PM, Tom Tromey wrote:
I change the GDB test suite to use this inputrc:

     $if version >= 8.0
     set enable-bracketed-paste off
     $endif

However, to my surprise, this did not work.  I believe this is a bug in
bind.c:parser_if.

This function computes 'op' as 'OP_GE' (ok so far), but then does:

        case OP_GE:
          _rl_parsing_conditionalized_out = rlversion >= versionarg;
          break;

This sets _rl_parsing_conditionalized_out to 1, but it should be 0.
I think all of these results should be inverted.  See the appended patch
for what I mean.

Thanks for the report, you're right about the intent of the tests. I must
have dropped a line when I added this back in readline-8.0.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Reply via email to