From de605aafe7f08acbf990408bcf188095b79acd5d Mon Sep 17 00:00:00 2001 From: Michael Ea Date: Mon, 16 May 2022 10:48:18 +0200 Subject: [PATCH] fixed exit and export w/no args --- built-in.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/built-in.c b/built-in.c index 95504e8..fffc6f5 100755 --- a/built-in.c +++ b/built-in.c @@ -6,7 +6,7 @@ /* By: mea +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/01/06 09:02:57 by narnaud #+# #+# */ -/* Updated: 2022/05/16 10:44:36 by mea ### ########.fr */ +/* Updated: 2022/05/16 10:48:07 by mea ### ########.fr */ /* */ /* ************************************************************************** */ @@ -94,7 +94,7 @@ int ft_cd(t_command *cmd) int ft_exit(t_datas *datas, t_command *cmd) { - if (cmd->argc < 2) + if (cmd->argc < 2) halt(datas, EXIT_SUCCESS, 0); else halt(datas, ft_atoi(cmd->argv[1]), 0);