Browse Source

fixed exit and export w/no args

master
Michael Ea 3 years ago
parent
commit
de605aafe7
  1. 4
      built-in.c

4
built-in.c

@ -6,7 +6,7 @@
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);

Loading…
Cancel
Save