3901 |
|
|
3902 |
if (G_interactive_fd) |
if (G_interactive_fd) |
3903 |
printf("[%d] %d %s\n", job->jobid, job->cmds[0].pid, job->cmdtext); |
printf("[%d] %d %s\n", job->jobid, job->cmds[0].pid, job->cmdtext); |
|
/* Last command's pid goes to $! */ |
|
|
G.last_bg_pid = job->cmds[job->num_cmds - 1].pid; |
|
3904 |
G.last_jobid = job->jobid; |
G.last_jobid = job->jobid; |
3905 |
} |
} |
3906 |
|
|
4823 |
if (G.run_list_level == 1) |
if (G.run_list_level == 1) |
4824 |
insert_bg_job(pi); |
insert_bg_job(pi); |
4825 |
#endif |
#endif |
4826 |
|
/* Last command's pid goes to $! */ |
4827 |
|
G.last_bg_pid = pi->cmds[pi->num_cmds - 1].pid; |
4828 |
G.last_exitcode = rcode = EXIT_SUCCESS; |
G.last_exitcode = rcode = EXIT_SUCCESS; |
4829 |
debug_printf_exec(": cmd&: exitcode EXIT_SUCCESS\n"); |
debug_printf_exec(": cmd&: exitcode EXIT_SUCCESS\n"); |
4830 |
} else { |
} else { |