Bash-4.3 patch 3
authorChet Ramey <chet.ramey@case.edu>
Fri, 28 Mar 2014 15:53:20 +0000 (11:53 -0400)
committerChet Ramey <chet.ramey@case.edu>
Fri, 28 Mar 2014 15:53:20 +0000 (11:53 -0400)
lib/readline/readline.c
patchlevel.h

index 03eefa6..55c0522 100644 (file)
@@ -744,7 +744,8 @@ _rl_dispatch_callback (cxt)
     r = _rl_subseq_result (r, cxt->oldmap, cxt->okey, (cxt->flags & KSEQ_SUBSEQ));
 
   RL_CHECK_SIGNALS ();
-  if (r == 0)                  /* success! */
+  /* We only treat values < 0 specially to simulate recursion. */
+  if (r >= 0 || (r == -1 && (cxt->flags & KSEQ_SUBSEQ) == 0))  /* success! or failure! */
     {
       _rl_keyseq_chain_dispose ();
       RL_UNSETSTATE (RL_STATE_MULTIKEY);
index 1146585..a73336e 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 2
+#define PATCHLEVEL 3
 
 #endif /* _PATCHLEVEL_H_ */