diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 21:18:27 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 21:18:27 +0200 |
commit | ff845bada3fe6898a228c10422f0561e2a532622 (patch) | |
tree | b6c407875f7a87bc28e55426a7f3d2fd101be47a /src/s_com.c | |
parent | qwe (diff) | |
download | 42-minishell-ff845bada3fe6898a228c10422f0561e2a532622.tar.gz 42-minishell-ff845bada3fe6898a228c10422f0561e2a532622.tar.bz2 42-minishell-ff845bada3fe6898a228c10422f0561e2a532622.tar.xz 42-minishell-ff845bada3fe6898a228c10422f0561e2a532622.tar.zst 42-minishell-ff845bada3fe6898a228c10422f0561e2a532622.zip |
Fuck this
Diffstat (limited to 'src/s_com.c')
-rw-r--r-- | src/s_com.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s_com.c b/src/s_com.c index 51b2500..4d78573 100644 --- a/src/s_com.c +++ b/src/s_com.c @@ -116,13 +116,13 @@ t_com ft_strlcpy(nword, word, ARG_MAX); 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); + p_subst_vars(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) |