summaryrefslogtreecommitdiffstats
path: root/src/s_com.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/s_com.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 'src/s_com.c')
-rw-r--r--src/s_com.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/s_com.c b/src/s_com.c
index 1bde96c..550616c 100644
--- a/src/s_com.c
+++ b/src/s_com.c
@@ -117,6 +117,8 @@ t_com
return (NULL);
if ((words = p_subst_vars(words, msh)) == NULL)
return (NULL);
+ if ((words = p_subst_home(words, msh)) == NULL)
+ return (NULL);
words = p_check_args_equals(words, msh);
if (msh->env_fork_tmp[0][0] != '\0')
com_cpy_env_fork(&com, msh);