qi: Bump to release candidate 2.10-rc3
[dragora.git] / patches / readline / readline81-001
blob2f99282c87f3ae0e976da076a98e5f8588220e25
1                            READLINE PATCH REPORT
2                            =====================
4 Readline-Release: 8.1
5 Patch-ID: readline81-001
7 Bug-Reported-by:        Tom Tromey <tom@tromey.com>
8 Bug-Reference-ID:       <875z3u9fd0.fsf@tromey.com>
9 Bug-Reference-URL:      https://lists.gnu.org/archive/html/bug-readline/2021-01/msg00009.html
11 Bug-Description:
13 The code to check readline versions in an inputrc file had the sense of the
14 comparisons reversed.
16 Patch (apply with `patch -p0'):
18 *** ../readline-8.1-patched/bind.c      2020-10-26 10:03:14.000000000 -0400
19 --- bind.c      2021-01-18 16:38:48.000000000 -0500
20 ***************
21 *** 1235,1239 ****
22     else if (_rl_strnicmp (args, "version", 7) == 0)
23       {
24 !       int rlversion, versionarg, op, previ, major, minor;
25   
26         _rl_parsing_conditionalized_out = 1;
27 --- 1235,1239 ----
28     else if (_rl_strnicmp (args, "version", 7) == 0)
29       {
30 !       int rlversion, versionarg, op, previ, major, minor, opresult;
31   
32         _rl_parsing_conditionalized_out = 1;
33 ***************
34 *** 1295,1316 ****
35         {
36         case OP_EQ:
37 !         _rl_parsing_conditionalized_out = rlversion == versionarg;
38           break;
39         case OP_NE:
40 !         _rl_parsing_conditionalized_out = rlversion != versionarg;
41           break;
42         case OP_GT:
43 !         _rl_parsing_conditionalized_out = rlversion > versionarg;
44           break;
45         case OP_GE:
46 !         _rl_parsing_conditionalized_out = rlversion >= versionarg;
47           break;
48         case OP_LT:
49 !         _rl_parsing_conditionalized_out = rlversion < versionarg;
50           break;
51         case OP_LE:
52 !         _rl_parsing_conditionalized_out = rlversion <= versionarg;
53           break;
54         }
55       }
56     /* Check to see if the first word in ARGS is the same as the
57 --- 1295,1317 ----
58         {
59         case OP_EQ:
60 !         opresult = rlversion == versionarg;
61           break;
62         case OP_NE:
63 !         opresult = rlversion != versionarg;
64           break;
65         case OP_GT:
66 !         opresult = rlversion > versionarg;
67           break;
68         case OP_GE:
69 !         opresult = rlversion >= versionarg;
70           break;
71         case OP_LT:
72 !         opresult = rlversion < versionarg;
73           break;
74         case OP_LE:
75 !         opresult = rlversion <= versionarg;
76           break;
77         }
78 +       _rl_parsing_conditionalized_out = 1 - opresult;
79       }
80     /* Check to see if the first word in ARGS is the same as the
82 *** ../readline-8.1/patchlevel  2013-11-15 08:11:11.000000000 -0500
83 --- patchlevel  2014-03-21 08:28:40.000000000 -0400
84 ***************
85 *** 1,3 ****
86   # Do not edit -- exists only for use by patch
87   
88 ! 0
89 --- 1,3 ----
90   # Do not edit -- exists only for use by patch
91   
92 ! 1