From 488c04746a39d50ec403bda734d3c863a5315cfd Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Sun, 17 Jun 2012 23:39:42 +0300 Subject: [PATCH] Ticket #2830: subshell history not written on exit Since Bash 4.2, closing with any signal will not cause it to write the command history. Signed-off-by: Slava Zanko --- src/subshell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/subshell.c b/src/subshell.c index 7eefab554..ce2ff7695 100644 --- a/src/subshell.c +++ b/src/subshell.c @@ -1064,6 +1064,8 @@ exit_subshell (void) if (subshell_quit) { + write_all (mc_global.tty.subshell_pty, " exit\n", 6); + if (subshell_type == TCSH) { if (unlink (tcsh_fifo) == -1) -- 2.11.4.GIT