projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed segfault with 'cut -f 1 -d:' and added 'cut -s' suport.
[oweals/busybox.git]
/
sh.c
diff --git
a/sh.c
b/sh.c
index 8ea5e305befcbca4b28f9bc2f0ab9144b40e28cc..56d94258cdf6331ed3312958488b1473f7ec497f 100644
(file)
--- a/
sh.c
+++ b/
sh.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 */