WIP added basic cd command

The command only works with `-`, absolut paths and empty arg
No option has been added
This commit is contained in:
Tanguy MAZE
2019-01-21 17:35:57 +01:00
parent 0dfcd409df
commit 9dc92563e3
3 changed files with 86 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/18 13:12:34 by tmaze #+# #+# */
/* Updated: 2019/01/15 15:09:58 by tmaze ### ########.fr */
/* Updated: 2019/01/21 13:14:47 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -43,4 +43,8 @@ int cmd_env(char **argv, t_list **env);
int cmd_setenv(char **argv, t_list **env);
int cmd_unsetenv(char **argv, t_list **env);
int ft_isin(char *str, char c);
char *check_path_slash(char *exec);
char *check_path_dot(char *exec, t_list *env);
#endif