summaryrefslogtreecommitdiffstats
path: root/src/s_com.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 15:05:31 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 15:05:31 +0200
commit6f756ee6112c723cfe0f8ece2d530b249aa47e00 (patch)
treed855b1f53369b382c6cb204a3241561e48d99e5d /src/s_com.c
parentLOT to fix (diff)
download42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.gz
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.bz2
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.xz
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.tar.zst
42-minishell-6f756ee6112c723cfe0f8ece2d530b249aa47e00.zip
Fix
Diffstat (limited to 'src/s_com.c')
-rw-r--r--src/s_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s_com.c b/src/s_com.c
index 95f2d94..ee55c58 100644
--- a/src/s_com.c
+++ b/src/s_com.c
@@ -96,8 +96,7 @@ void
}
t_com
- *s_com_new(char word[],
- t_msh *msh)
+ *s_com_new(char word[], t_msh *msh)
{
t_com *com;
char **words;
@@ -114,6 +113,7 @@ t_com
return (NULL);
if ((word = p_subst_vars(word, msh)) == NULL)
return (NULL);
+ msh->curr->lblock = word;
if ((words = p_split_args(word, com->redir)) == NULL)
return (NULL);
if ((words = p_subst_home(words, msh)) == NULL)