aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorproski <proski@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-15 00:46:51 +0000
committerproski <proski@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-15 00:46:51 +0000
commit5b00b6debf69287d99980257b75e951708014d51 (patch)
tree87ab9fc2d82f58f7d77a332849c00389e364b59d /sh.c
parent7dbb31e9f6594f0d18ad222094c52945eab67559 (diff)
downloadbusybox-w32-5b00b6debf69287d99980257b75e951708014d51.tar.gz
busybox-w32-5b00b6debf69287d99980257b75e951708014d51.tar.bz2
busybox-w32-5b00b6debf69287d99980257b75e951708014d51.zip
"exit NUMBER" should exit, not return
git-svn-id: svn://busybox.net/trunk/busybox@1054 69ca8d6d-28ef-0310-b511-8ec308f3f277
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)
225 if (!cmd->progs[0].argv[1] == 1) 225 if (!cmd->progs[0].argv[1] == 1)
226 exit TRUE; 226 exit TRUE;
227 227
228 return(atoi(cmd->progs[0].argv[1])); 228 exit (atoi(cmd->progs[0].argv[1]));
229} 229}
230 230
231/* built-in 'fg' and 'bg' handler */ 231/* built-in 'fg' and 'bg' handler */