7 Bug-Reported-by: John Lenton
9 Bug-Reference-URL: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1317476
13 The -t timeout option to `read' does not work when the -e option is used.
15 Patch (apply with `patch -p0'):
17 *** ../bash-4.3-patched/lib/readline/input.c 2014-01-10 15:07:08.000000000 -0500
18 --- lib/readline/input.c 2014-05-22 18:40:59.000000000 -0400
22 else if (_rl_caught_signal == SIGHUP || _rl_caught_signal == SIGTERM)
23 return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF);
24 + /* keyboard-generated signals of interest */
25 else if (_rl_caught_signal == SIGINT || _rl_caught_signal == SIGQUIT)
27 + /* non-keyboard-generated signals of interest */
28 + else if (_rl_caught_signal == SIGALRM
29 + #if defined (SIGVTALRM)
30 + || _rl_caught_signal == SIGVTALRM
33 + RL_CHECK_SIGNALS ();
35 if (rl_signal_event_hook)
36 *** ../bash-4.3-patched/builtins/read.def 2013-09-02 11:54:00.000000000 -0400
37 --- builtins/read.def 2014-05-08 11:43:35.000000000 -0400
40 #if defined (READLINE)
42 ! add_unwind_protect (reset_attempted_completion_function, (char *)NULL);
44 falarm (tmsec, tmusec);
46 #if defined (READLINE)
49 ! add_unwind_protect (reset_attempted_completion_function, (char *)NULL);
50 ! add_unwind_protect (bashline_reset_event_hook, (char *)NULL);
53 falarm (tmsec, tmusec);
57 old_attempted_completion_function = rl_attempted_completion_function;
58 rl_attempted_completion_function = (rl_completion_func_t *)NULL;
59 + bashline_set_event_hook ();
65 rl_attempted_completion_function = old_attempted_completion_function;
66 old_attempted_completion_function = (rl_completion_func_t *)NULL;
67 + bashline_reset_event_hook ();
70 *** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
71 --- patchlevel.h 2014-03-20 20:01:28.000000000 -0400
74 looks for to find the patch level (for the sccs version string). */
76 ! #define PATCHLEVEL 18
78 #endif /* _PATCHLEVEL_H_ */
80 looks for to find the patch level (for the sccs version string). */
82 ! #define PATCHLEVEL 19
84 #endif /* _PATCHLEVEL_H_ */