diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 18:08:50 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 18:08:50 +0200 |
commit | 6dc6bf6f46b736299826bfdd63192bdee16ba875 (patch) | |
tree | c8d2cd267561655f94970e9d0a2d4b1976321fc3 /src/b_exit.c | |
parent | env vars setting is ok (diff) | |
download | 42-minishell-6dc6bf6f46b736299826bfdd63192bdee16ba875.tar.gz 42-minishell-6dc6bf6f46b736299826bfdd63192bdee16ba875.tar.bz2 42-minishell-6dc6bf6f46b736299826bfdd63192bdee16ba875.tar.xz 42-minishell-6dc6bf6f46b736299826bfdd63192bdee16ba875.tar.zst 42-minishell-6dc6bf6f46b736299826bfdd63192bdee16ba875.zip |
Less retarded stuff
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); } |