diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 21:19:29 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 21:19:29 +0200 |
commit | 004eef9a3fd3403d6634ca658336d9a1e9766685 (patch) | |
tree | 571cd00a9719c9174f0e5ad09f57585a6bd87e86 /src/b_cd.c | |
parent | I couldn't see shit (diff) | |
download | 42-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |