summaryrefslogtreecommitdiffstats
path: root/src/e_builtins.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-27 17:47:04 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-27 17:47:04 +0200
commit8a1352d62c0dd66ecdd5807e83c16a00fb864635 (patch)
tree41d8a9c612e0373f0beed119ccae88e55b6ba8c2 /src/e_builtins.c
parentTODO update (diff)
download42-minishell-8a1352d62c0dd66ecdd5807e83c16a00fb864635.tar.gz
42-minishell-8a1352d62c0dd66ecdd5807e83c16a00fb864635.tar.bz2
42-minishell-8a1352d62c0dd66ecdd5807e83c16a00fb864635.tar.xz
42-minishell-8a1352d62c0dd66ecdd5807e83c16a00fb864635.tar.zst
42-minishell-8a1352d62c0dd66ecdd5807e83c16a00fb864635.zip
Histfile is BAV
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);