summaryrefslogtreecommitdiffstats
path: root/src/b_cd.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 21:19:29 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 21:19:29 +0200
commit004eef9a3fd3403d6634ca658336d9a1e9766685 (patch)
tree571cd00a9719c9174f0e5ad09f57585a6bd87e86 /src/b_cd.c
parentI couldn't see shit (diff)
download42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.gz
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.bz2
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.xz
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.zst
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.zip
In progress
Diffstat (limited to '')
-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 bcc8475..c325201 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,
- "~", subst_var_value("$HOME", msh))))
+ "~", get_var_value("$HOME", msh))))
{
s_destroy(msh);
fail_alloc(msh);
@@ -55,7 +55,7 @@ uint8_t
}
else if (argc == 0)
{
- if (!(path = subst_var_value("$HOME", msh)))
+ if (!(path = get_var_value("$HOME", msh)))
return (1);
}
else