Bash-4.3 patch 33

This commit is contained in:
Chet Ramey 2015-01-15 10:21:08 -05:00
commit 84c617ecf0
6 changed files with 50 additions and 8 deletions

View file

@ -73,6 +73,7 @@
#endif
#if defined (READLINE)
# include <readline/readline.h>
# include "bashline.h"
#endif
@ -909,6 +910,14 @@ exit_shell (s)
fflush (stdout); /* XXX */
fflush (stderr);
/* Clean up the terminal if we are in a state where it's been modified. */
#if defined (READLINE)
if (RL_ISSTATE (RL_STATE_TERMPREPPED) && rl_deprep_term_function)
(*rl_deprep_term_function) ();
#endif
if (read_tty_modified ())
read_tty_cleanup ();
/* Do trap[0] if defined. Allow it to override the exit status
passed to us. */
if (signal_is_trapped (0))