From d9d98feb999b6f503b5ca330976dc30266016551 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 10 Aug 2020 19:06:30 +0200 Subject: Pretty damn good one-tap vars --- src/s_lcom.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/s_lcom.c') diff --git a/src/s_lcom.c b/src/s_lcom.c index 7ef64b3..536a8ff 100644 --- a/src/s_lcom.c +++ b/src/s_lcom.c @@ -17,6 +17,7 @@ #include "p_lcom.h" #include "p_lcom_next.h" #include "s_struct.h" +#include "s_lcom_next.h" static int8_t fill_lcom(char *words[], @@ -107,7 +108,7 @@ void t_lcom *lcom_new(const char word[], - t_msh *msh) + t_msh *msh) { /* TODO: norme */ t_lcom *link; @@ -135,6 +136,8 @@ t_lcom if (!(words = p_subst_vars(words, msh))) return (NULL); words = p_check_args_equals(words, msh); + if (msh->env_fork_tmp[0][0] != '\0') + lcom_cpy_env_fork(&link, msh); if (fill_lcom(words, &link) < 0) { ft_delwords(words); -- cgit v1.2.3