Ondrej Oprala 529fec
			     BASH PATCH REPORT
Ondrej Oprala 529fec
			     =================
Ondrej Oprala 529fec
Ondrej Oprala 529fec
Bash-Release:	4.3
Ondrej Oprala 529fec
Patch-ID:	bash43-019
Ondrej Oprala 529fec
Ondrej Oprala 529fec
Bug-Reported-by:	John Lenton
Ondrej Oprala 529fec
Bug-Reference-ID:
Ondrej Oprala 529fec
Bug-Reference-URL:	https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1317476
Ondrej Oprala 529fec
Ondrej Oprala 529fec
Bug-Description:
Ondrej Oprala 529fec
Ondrej Oprala 529fec
The -t timeout option to `read' does not work when the -e option is used.
Ondrej Oprala 529fec
Ondrej Oprala 529fec
Patch (apply with `patch -p0'):
Ondrej Oprala 529fec
Ondrej Oprala 529fec
*** ../bash-4.3-patched/lib/readline/input.c	2014-01-10 15:07:08.000000000 -0500
Ondrej Oprala 529fec
--- lib/readline/input.c	2014-05-22 18:40:59.000000000 -0400
Ondrej Oprala 529fec
***************
Ondrej Oprala 529fec
*** 535,540 ****
Ondrej Oprala 529fec
--- 538,551 ----
Ondrej Oprala 529fec
        else if (_rl_caught_signal == SIGHUP || _rl_caught_signal == SIGTERM)
Ondrej Oprala 529fec
  	return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF);
Ondrej Oprala 529fec
+       /* keyboard-generated signals of interest */
Ondrej Oprala 529fec
        else if (_rl_caught_signal == SIGINT || _rl_caught_signal == SIGQUIT)
Ondrej Oprala 529fec
          RL_CHECK_SIGNALS ();
Ondrej Oprala 529fec
+       /* non-keyboard-generated signals of interest */
Ondrej Oprala 529fec
+       else if (_rl_caught_signal == SIGALRM
Ondrej Oprala 529fec
+ #if defined (SIGVTALRM)
Ondrej Oprala 529fec
+ 		|| _rl_caught_signal == SIGVTALRM
Ondrej Oprala 529fec
+ #endif
Ondrej Oprala 529fec
+ 	      )
Ondrej Oprala 529fec
+         RL_CHECK_SIGNALS ();
Ondrej Oprala 529fec
  
Ondrej Oprala 529fec
        if (rl_signal_event_hook)
Ondrej Oprala 529fec
*** ../bash-4.3-patched/builtins/read.def	2013-09-02 11:54:00.000000000 -0400
Ondrej Oprala 529fec
--- builtins/read.def	2014-05-08 11:43:35.000000000 -0400
Ondrej Oprala 529fec
***************
Ondrej Oprala 529fec
*** 443,447 ****
Ondrej Oprala 529fec
  #if defined (READLINE)
Ondrej Oprala 529fec
        if (edit)
Ondrej Oprala 529fec
! 	add_unwind_protect (reset_attempted_completion_function, (char *)NULL);
Ondrej Oprala 529fec
  #endif
Ondrej Oprala 529fec
        falarm (tmsec, tmusec);
Ondrej Oprala 529fec
--- 443,450 ----
Ondrej Oprala 529fec
  #if defined (READLINE)
Ondrej Oprala 529fec
        if (edit)
Ondrej Oprala 529fec
! 	{
Ondrej Oprala 529fec
! 	  add_unwind_protect (reset_attempted_completion_function, (char *)NULL);
Ondrej Oprala 529fec
! 	  add_unwind_protect (bashline_reset_event_hook, (char *)NULL);
Ondrej Oprala 529fec
! 	}
Ondrej Oprala 529fec
  #endif
Ondrej Oprala 529fec
        falarm (tmsec, tmusec);
Ondrej Oprala 529fec
***************
Ondrej Oprala 529fec
*** 1022,1025 ****
Ondrej Oprala 529fec
--- 1025,1029 ----
Ondrej Oprala 529fec
    old_attempted_completion_function = rl_attempted_completion_function;
Ondrej Oprala 529fec
    rl_attempted_completion_function = (rl_completion_func_t *)NULL;
Ondrej Oprala 529fec
+   bashline_set_event_hook ();
Ondrej Oprala 529fec
    if (itext)
Ondrej Oprala 529fec
      {
Ondrej Oprala 529fec
***************
Ondrej Oprala 529fec
*** 1033,1036 ****
Ondrej Oprala 529fec
--- 1037,1041 ----
Ondrej Oprala 529fec
    rl_attempted_completion_function = old_attempted_completion_function;
Ondrej Oprala 529fec
    old_attempted_completion_function = (rl_completion_func_t *)NULL;
Ondrej Oprala 529fec
+   bashline_reset_event_hook ();
Ondrej Oprala 529fec
  
Ondrej Oprala 529fec
    if (ret == 0)
Ondrej Oprala 529fec
*** ../bash-4.3/patchlevel.h	2012-12-29 10:47:57.000000000 -0500
Ondrej Oprala 529fec
--- patchlevel.h	2014-03-20 20:01:28.000000000 -0400
Ondrej Oprala 529fec
***************
Ondrej Oprala 529fec
*** 26,30 ****
Ondrej Oprala 529fec
     looks for to find the patch level (for the sccs version string). */
Ondrej Oprala 529fec
  
Ondrej Oprala 529fec
! #define PATCHLEVEL 18
Ondrej Oprala 529fec
  
Ondrej Oprala 529fec
  #endif /* _PATCHLEVEL_H_ */
Ondrej Oprala 529fec
--- 26,30 ----
Ondrej Oprala 529fec
     looks for to find the patch level (for the sccs version string). */
Ondrej Oprala 529fec
  
Ondrej Oprala 529fec
! #define PATCHLEVEL 19
Ondrej Oprala 529fec
  
Ondrej Oprala 529fec
  #endif /* _PATCHLEVEL_H_ */