summaryrefslogtreecommitdiffstats
path: root/src/e_builtins.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-17 18:12:18 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-17 18:12:18 +0200
commit598c360d22fa9b3c863f74bb6280472fd805fa0d (patch)
tree0f4da458afd6ee66a9aa203df459e061970de5a1 /src/e_builtins.c
parentSet libft/ft_is* to type t_bool (diff)
download42-minishell-598c360d22fa9b3c863f74bb6280472fd805fa0d.tar.gz
42-minishell-598c360d22fa9b3c863f74bb6280472fd805fa0d.tar.bz2
42-minishell-598c360d22fa9b3c863f74bb6280472fd805fa0d.tar.xz
42-minishell-598c360d22fa9b3c863f74bb6280472fd805fa0d.tar.zst
42-minishell-598c360d22fa9b3c863f74bb6280472fd805fa0d.zip
Fixed unset not working
Diffstat (limited to '')
-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 c00114d..e1dbfbb 100644
--- a/src/e_builtins.c
+++ b/src/e_builtins.c
@@ -71,6 +71,8 @@ static void
msh->bu_ptr[bu_id](ptr->argv + 1, msh);
else if (bu_id == FT_ID_EXPORT)
b_export_mute(ptr->argv + 1, msh);
+ else if (bu_id == FT_ID_UNSET)
+ msh->bu_ptr[bu_id](ptr->argv + 1, msh);
else if (bu_id == FT_ID_EXIT && ret == 0)
{
s_line_clear(&msh->curr);