From 949f93b57b6411b07eb12110e0db37cdf393db0c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 12 Sep 2020 16:33:02 +0200 Subject: Fuck --- src/s_com.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/s_com.c') diff --git a/src/s_com.c b/src/s_com.c index a5c594a..b899555 100644 --- a/src/s_com.c +++ b/src/s_com.c @@ -103,6 +103,7 @@ t_com char nword[ARG_MAX]; t_com *com; char **words; + size_t ret; if ((com = (t_com*)malloc(sizeof(t_com))) == NULL) return (NULL); @@ -117,7 +118,11 @@ t_com if (p_get_redir(nword, &com) != 0) return (NULL); if (msh->alias != NULL) - p_subst_alias(nword, msh); + { + ret = p_subst_alias(nword, TRUE, msh); + while (ret != 0) + ret = p_subst_alias(nword, TRUE, msh); + } p_subst_vars(nword, msh); if ((words = p_split_args(nword, com->redir)) == NULL) return (NULL); -- cgit v1.2.3