aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2000-09-15 00:46:51 +0000
committerPavel Roskin <proski@gnu.org>2000-09-15 00:46:51 +0000
commit5f84fd70662db883c1697038fa4c1a4bc8676862 (patch)
tree87ab9fc2d82f58f7d77a332849c00389e364b59d /sh.c
parentcbe05e45db168fabf807c3cf943a00ff81ec8279 (diff)
downloadbusybox-5f84fd70662db883c1697038fa4c1a4bc8676862.tar.gz
"exit NUMBER" should exit, not return
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh.c b/sh.c
index 7bc43190d..a2969082f 100644
--- a/sh.c
+++ b/sh.c
@@ -225,7 +225,7 @@ static int builtin_exit(struct job *cmd, struct jobSet *junk)
if (!cmd->progs[0].argv[1] == 1)
exit TRUE;
- return(atoi(cmd->progs[0].argv[1]));
+ exit (atoi(cmd->progs[0].argv[1]));
}
/* built-in 'fg' and 'bg' handler */