diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 14:17:09 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 14:17:09 +0200 |
commit | a485d8a2ba988df9d5433d2e13c326b2103e6412 (patch) | |
tree | 147356134217e64809610454aa2ec78612b968cc /src/ft_b_cd.c | |
parent | Finished and normed type (diff) | |
download | 42-minishell-a485d8a2ba988df9d5433d2e13c326b2103e6412.tar.gz 42-minishell-a485d8a2ba988df9d5433d2e13c326b2103e6412.tar.bz2 42-minishell-a485d8a2ba988df9d5433d2e13c326b2103e6412.tar.xz 42-minishell-a485d8a2ba988df9d5433d2e13c326b2103e6412.tar.zst 42-minishell-a485d8a2ba988df9d5433d2e13c326b2103e6412.zip |
Removed useless function made obsolete by subst_var_value
Diffstat (limited to 'src/ft_b_cd.c')
-rw-r--r-- | src/ft_b_cd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_b_cd.c b/src/ft_b_cd.c index cbb392a..7d4ef1a 100644 --- a/src/ft_b_cd.c +++ b/src/ft_b_cd.c @@ -16,6 +16,7 @@ #include "ft_s_struct.h" #include "ft_u_utils.h" +#include "ft_u_vars.h" /* static void */ /* ft_switch_env_var(char **envp) */ @@ -45,7 +46,8 @@ uint8_t if (argc == 0) { - path = ft_get_home_dir(msh->envp); + path = ft_subst_var_value("$HOME", msh); + ft_printf("%s\n", path); } if (chdir(path) != 0) { |