replaced occurrences of last exit_status
+ deleted envp comments + WIP Macro exit status + TODO : Invalid free of environ in readline
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/10 05:01:22 by lperrey #+# #+# */
|
||||
/* Updated: 2021/10/22 14:49:01 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/11/27 10:47:32 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -17,7 +17,7 @@ int builtin_exit(int argc, char *argv[], t_all *c) // WIP
|
||||
unsigned char status;
|
||||
int i;
|
||||
|
||||
status = c->last_exit_status;
|
||||
status = get_last_exit_status();
|
||||
if (argc > 2)
|
||||
return (ft_reti_print(1, "exit: too many arguments\n", 2));
|
||||
if (argc == 2)
|
||||
|
||||
Reference in New Issue
Block a user