summaryrefslogtreecommitdiffstats
path: root/src/b_cd.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 22:38:54 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 22:38:54 +0200
commit280ecd341f1ec88abe325fa69b197bca3e43d2f1 (patch)
tree3f10bdb634f5a727bbf2e410072bc8f6537310e4 /src/b_cd.c
parentIn progress (diff)
download42-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 'src/b_cd.c')
-rw-r--r--src/b_cd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/b_cd.c b/src/b_cd.c
index c325201..c892f7e 100644
--- a/src/b_cd.c
+++ b/src/b_cd.c
@@ -33,7 +33,7 @@ static void
if (!ft_strncmp("~/", *path, 2) || !ft_strncmp("~", *path, 2))
{
if (!(*path = ft_strsubst(*path,
- "~", get_var_value("$HOME", msh))))
+ "~", u_get_var_value("$HOME", msh))))
{
s_destroy(msh);
fail_alloc(msh);
@@ -55,7 +55,7 @@ uint8_t
}
else if (argc == 0)
{
- if (!(path = get_var_value("$HOME", msh)))
+ if (!(path = u_get_var_value("$HOME", msh)))
return (1);
}
else