aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c
index b842d6eec..7683a3749 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -9636,12 +9636,13 @@ static int FAST_FUNC builtin_wait(char **argv)
9636 /* "wait $!" but last bg task has already exited. Try: 9636 /* "wait $!" but last bg task has already exited. Try:
9637 * (sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $? 9637 * (sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?
9638 * In bash it prints exitcode 0, then 3. 9638 * In bash it prints exitcode 0, then 3.
9639 * In dash, it is 127.
9639 */ 9640 */
9640 ret = 0; /* FIXME */ 9641 /* ret = G.last_bg_pid_exitstatus - FIXME */
9641 continue; 9642 } else {
9643 /* Example: "wait 1". mimic bash message */
9644 bb_error_msg("wait: pid %d is not a child of this shell", (int)pid);
9642 } 9645 }
9643 /* Example: "wait 1". mimic bash message */
9644 bb_error_msg("wait: pid %d is not a child of this shell", (int)pid);
9645 } else { 9646 } else {
9646 /* ??? */ 9647 /* ??? */
9647 bb_perror_msg("wait %s", *argv); 9648 bb_perror_msg("wait %s", *argv);