mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
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:
parent
c13eed8d81
commit
488c04746a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user