aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 8ea5e305b..56d94258c 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -188,8 +188,7 @@ static int shell_exit(struct job *cmd, struct jobSet *junk)
if (!cmd->progs[0].argv[1] == 1)
exit TRUE;
- else
- exit(atoi(cmd->progs[0].argv[1]));
+ return(atoi(cmd->progs[0].argv[1]));
}
/* built-in 'fg' and 'bg' handler */