feature: add cd built-in

This commit is contained in:
Tanguy Maze
2019-11-10 21:45:56 +01:00
parent e89ccb64b2
commit 4123c5dca3
9 changed files with 253 additions and 83 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/18 13:12:34 by tmaze #+# #+# */
/* Updated: 2019/10/31 14:38:16 by tmaze ### ########.fr */
/* Updated: 2019/11/10 20:57:46 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -38,12 +38,14 @@ int cmd_unsetenv(char **argv, t_env **env);
int cmd_cd(char **argv, t_env **env);
int cmd_echo(char **argv, t_env **env);
void lstdelelem(t_env **elem);
void lstdel(t_env **env);
t_env *lstnew(char *env);
t_env *lstaddend(t_env **alst, t_env *new);
t_env *lstgetelem(char *key, t_env *env);
char **lsttotab(t_env *env);
void ft_envdelelem(t_env **elem);
void ft_envdel(t_env **env);
t_env *ft_envnew(char *env);
t_env *ft_envaddend(t_env **alst, t_env *new);
t_env *ft_envgetelem(char *key, t_env *env);
char **ft_envtotab(t_env *env);
char *ft_envupdate(char *key, t_env *env, char *val);
void ft_envclean(t_env **env);
char **res_ext(char **argv, t_env *env);