corrected env -i crash & SHLVL

This commit is contained in:
Tanguy Maze
2020-01-28 13:38:25 +01:00
parent 40718a99ac
commit 25c4b28f4c
7 changed files with 82 additions and 31 deletions

View File

@@ -6,21 +6,12 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/07 16:44:40 by tmaze #+# #+# */
/* Updated: 2020/01/23 23:37:53 by tmaze ### ########.fr */
/* Updated: 2020/01/26 22:17:48 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void *put_error_cd(char *file, char *msg)
{
ft_putstr("cd: ");
ft_putstr(file);
ft_putstr(": ");
ft_putendl(msg);
return (NULL);
}
char *check_path_slash_cd(char *exec)
{
int i;