summaryrefslogtreecommitdiffhomepage
path: root/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lash.c')
-rw-r--r--lash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lash.c b/lash.c
index 7bc43190d..a2969082f 100644
--- a/lash.c
+++ b/lash.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 */