diff -Nur bash-2.05/jobs.c bash-2.05.next/jobs.c --- bash-2.05/jobs.c Mon Mar 26 20:08:24 2001 +++ bash-2.05.next/jobs.c Tue May 1 17:48:13 2001 @@ -1614,19 +1614,19 @@ /* Return the exit status of the last process in the pipeline for job JOB. This is the exit status of the entire job. */ -static WAIT +static int raw_job_exit_status (job) { register PROCESS *p; for (p = jobs[job]->pipe; p->next != jobs[job]->pipe; p = p->next) ; - return (p->status); + return (WSTATUS (p->status)); } /* Return the exit status of job JOB. This is the exit status of the last (rightmost) process in the job's pipeline, modified if the job was killed by a signal or stopped. */ -static WAIT +static int job_exit_status (job) int job; {