diff options
Diffstat (limited to '')
-rw-r--r-- | src/b_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/b_exit.c b/src/b_exit.c index 75f16bf..777bbb9 100644 --- a/src/b_exit.c +++ b/src/b_exit.c @@ -28,6 +28,7 @@ uint8_t uint8_t ret; const uint64_t argc = get_argc((const char**)args); + ret = 0; if (argc > 1) { fail_too_many_args("exit", msh); @@ -39,5 +40,6 @@ uint8_t /* TODO: non numeric args[0] */ } ft_dprintf(STDERR_FILENO, "exit\n"); + exit(ret); return (0); } |