lexer (need refactoring)
+ littles miscs
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/11 01:50:53 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/10/15 08:45:33 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -17,7 +17,8 @@ int builtin_exit(int argc, char *argv[], t_all *c) // WIP
|
||||
unsigned char status;
|
||||
int i;
|
||||
|
||||
status = 0;
|
||||
status = 0; // # should not return '0' by default, but the last exit code value (same as $?)
|
||||
// status = c->last_exit_value; // LIKE THIS
|
||||
if (argc > 2)
|
||||
return (ft_reti_print(1, "exit: too many arguments\n", 2));
|
||||
if (argc == 2)
|
||||
|
||||
Reference in New Issue
Block a user