diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 22:38:54 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 22:38:54 +0200 |
commit | 280ecd341f1ec88abe325fa69b197bca3e43d2f1 (patch) | |
tree | 3f10bdb634f5a727bbf2e410072bc8f6537310e4 /src/p_lcom_next.c | |
parent | In progress (diff) | |
download | 42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.gz 42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.bz2 42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.xz 42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.zst 42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.zip |
Now can subst env vars
Diffstat (limited to '')
-rw-r--r-- | src/p_lcom_next.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p_lcom_next.c b/src/p_lcom_next.c index a4fbb61..a0ca8d1 100644 --- a/src/p_lcom_next.c +++ b/src/p_lcom_next.c @@ -34,7 +34,7 @@ static int8_t varlen += 1; if (!(s_varname = ft_substr(*p_words, (uint32_t)i, varlen - i))) return (-1); - varval = get_var_value(s_varname, msh); + varval = u_get_var_value(s_varname, msh); *p_words = ft_strsubst(*p_words, s_varname, varval); ft_memdel((void*)&s_varname); ft_memdel((void*)&varval); |