summaryrefslogtreecommitdiffstats
path: root/src/e_builtins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_builtins.c')
-rw-r--r--src/e_builtins.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/e_builtins.c b/src/e_builtins.c
index 666cf11..f4b363b 100644
--- a/src/e_builtins.c
+++ b/src/e_builtins.c
@@ -18,6 +18,7 @@
#include "b_export_next.h"
#include "b_export_mute.h"
+#include "m_loop.h"
#include "m_redirs.h"
#include "s_destroy.h"
#include "s_line.h"
@@ -77,6 +78,8 @@ static void
msh->bu_ptr[bu_id](ptr->argv + 1, msh);
else if (bu_id == FT_ID_EXIT)
{
+ if (msh->fd == STDIN_FILENO)
+ m_dump_hist(msh);
s_line_clear(&msh->curr);
s_destroy(msh);
exit(ret);