Merge branch 'master' of git.chauvet.pro:starnakin/minishell

This commit is contained in:
Camille Chauvet 2023-02-28 14:29:22 +01:00
commit 5541a1f3fe
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */
/* Updated: 2023/02/28 14:24:47 by erey-bet ### ########.fr */
/* Updated: 2023/02/28 14:28:18 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,7 +31,7 @@ int ft_exit(char **args, int fd)
if (args[0] == NULL)
return (0);
err = ft_atoi_check;
err = ft_atoi_check(args[0]);
if (err == 1)
return (error(err, "numeric argument required", args[0], fd));
if (args[1] != NULL)

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
/* Updated: 2023/02/28 13:30:32 by erey-bet ### ########.fr */
/* Updated: 2023/02/28 14:27:46 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
@ -62,6 +62,7 @@ int add_export(t_list **env, char *args, int fd, int *err)
return (1);
}
create_value_by_key_dup(key, value, env);
return (0);
}
int export(t_list **env, char **args, int fd)