Skip to content

Commit

Permalink
Merge pull request #47 from Ofacy/46-cd-doesnt-display-pwd
Browse files Browse the repository at this point in the history
cd - now display pwd
  • Loading branch information
Ofacy authored Apr 10, 2024
2 parents bc4a56c + 4d1b144 commit bbdd27d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srcs/builtins/cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: bwisniew <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/14 13:57:43 by bwisniew #+# #+# */
/* Updated: 2024/04/09 16:37:12 by lcottet ### ########.fr */
/* Updated: 2024/04/10 15:35:37 by bwisniew ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -99,6 +99,7 @@ int cd_oldpwd(t_mshell *sh)
error("cd");
return (1);
}
printf("%s\n", oldpwd->value);
return (cd_change_env(sh, NULL));
}

Expand Down

0 comments on commit bbdd27d

Please sign in to comment.