diff options
Diffstat (limited to '')
-rw-r--r-- | src/s_lcom.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/s_lcom.c b/src/s_lcom.c index 773814f..088f625 100644 --- a/src/s_lcom.c +++ b/src/s_lcom.c @@ -127,17 +127,18 @@ t_lcom link->pipes = NULL; if (get_redir(word, &link) != 0) return (NULL); - if (!(words = subst_args(word, link->redir))) + if (!(words = p_subst_args(word, link->redir))) return (NULL); - if (!(words = subst_vars(words, msh))) + if (!(words = p_subst_vars(words, msh))) return (NULL); - words = p_check_first_arg_equals(words); + words = p_check_args_equals(words, msh); if (fill_lcom(words, &link) < 0) { ft_delwords(words); return (NULL); } link->next = NULL; - ft_delwords(words); + if (words[0] != NULL) + ft_delwords(words); return (link); } |