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/b_cd.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 'src/b_cd.c')
-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, - "~", 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 |