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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/e_builtins.c b/src/e_builtins.c
index e1dbfbb..18abc16 100644
--- a/src/e_builtins.c
+++ b/src/e_builtins.c
@@ -22,6 +22,7 @@
#include "s_destroy.h"
#include "s_line.h"
#include "s_struct.h"
+#include "u_utils.h"
static void
e_export_env_fork(const t_com *ptr,
@@ -48,6 +49,7 @@ static void
e_export_env_fork(ptr, msh);
dup_redirs(ptr, msh);
ret = msh->bu_ptr[bu_id](ptr->argv + 1, msh);
+ u_eof_stdin();
s_line_clear(&msh->curr);
s_destroy(msh);
exit(ret);