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
13 The code to check readline versions in an inputrc file had the sense of the
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
22 else if (_rl_strnicmp (args, "version", 7) == 0)
24 ! int rlversion, versionarg, op, previ, major, minor;
26 _rl_parsing_conditionalized_out = 1;
28 else if (_rl_strnicmp (args, "version", 7) == 0)
30 ! int rlversion, versionarg, op, previ, major, minor, opresult;
32 _rl_parsing_conditionalized_out = 1;
37 ! _rl_parsing_conditionalized_out = rlversion == versionarg;
40 ! _rl_parsing_conditionalized_out = rlversion != versionarg;
43 ! _rl_parsing_conditionalized_out = rlversion > versionarg;
46 ! _rl_parsing_conditionalized_out = rlversion >= versionarg;
49 ! _rl_parsing_conditionalized_out = rlversion < versionarg;
52 ! _rl_parsing_conditionalized_out = rlversion <= versionarg;
56 /* Check to see if the first word in ARGS is the same as the
60 ! opresult = rlversion == versionarg;
63 ! opresult = rlversion != versionarg;
66 ! opresult = rlversion > versionarg;
69 ! opresult = rlversion >= versionarg;
72 ! opresult = rlversion < versionarg;
75 ! opresult = rlversion <= versionarg;
78 + _rl_parsing_conditionalized_out = 1 - opresult;
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
86 # Do not edit -- exists only for use by patch
90 # Do not edit -- exists only for use by patch