diff options
-rw-r--r-- | src/ft_b_cd.c | 2 | ||||
-rw-r--r-- | src/ft_e_builtins.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_b_cd.c b/src/ft_b_cd.c index fbd0282..9a93144 100644 --- a/src/ft_b_cd.c +++ b/src/ft_b_cd.c @@ -66,8 +66,6 @@ uint8_t ft_memdel((void*)&path); return (1); } - ft_memdel((void*)&msh->cwd); - msh->cwd = getcwd(NULL, 0); ft_memdel((void*)&path); return (0); } diff --git a/src/ft_e_builtins.c b/src/ft_e_builtins.c index 382f85d..0792de3 100644 --- a/src/ft_e_builtins.c +++ b/src/ft_e_builtins.c @@ -52,6 +52,7 @@ static void if (bu_id == 1 && msh->ret == 0) { msh->bu_ptr[bu_id](ptr->argv + 1, msh); + /* this must be cd */ /* TODO: export $PWD */ } else if (bu_id == 6 && ret == 0) |