summaryrefslogtreecommitdiffstats
path: root/src/s_com.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 19:32:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 19:32:47 +0200
commitbe1403ef70e51442df459b1ef89f547cbc9af4ca (patch)
treeb1efa1acba6cde5cf691ef0bea7fecf7fe6a8ab1 /src/s_com.c
parentIn progress (diff)
download42-minishell-be1403ef70e51442df459b1ef89f547cbc9af4ca.tar.gz
42-minishell-be1403ef70e51442df459b1ef89f547cbc9af4ca.tar.bz2
42-minishell-be1403ef70e51442df459b1ef89f547cbc9af4ca.tar.xz
42-minishell-be1403ef70e51442df459b1ef89f547cbc9af4ca.tar.zst
42-minishell-be1403ef70e51442df459b1ef89f547cbc9af4ca.zip
This shit is killing me
Diffstat (limited to '')
-rw-r--r--src/s_com.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s_com.c b/src/s_com.c
index 277d996..51b2500 100644
--- a/src/s_com.c
+++ b/src/s_com.c
@@ -117,11 +117,12 @@ t_com
if (p_get_redir(nword, &com) != 0)
return (NULL);
p_subst_vars(nword, msh);
+ p_check_args_equals(nword, msh);
+ p_subst_alias(nword, msh);
if ((words = p_split_args(nword, com->redir)) == 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')
s_com_cpy_env_fork(&com, msh);
if (s_fill_com(words, &com) < 0)