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 <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-06-17 23:39:42 +03:00
parent c13eed8d81
commit 488c04746a

View File

@ -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)