1 *** ../bash-3.0/jobs.c Fri Apr 23 16:28:25 2004
2 --- jobs.c Wed Aug 18 11:15:07 2004
7 ! printf ("[%d] %ld\n", job + 1, (long)pid);
9 programming_error (_("describe_pid: %ld: no such pid"), (long)pid);
13 ! fprintf (stderr, "[%d] %ld\n", job + 1, (long)pid);
15 programming_error (_("describe_pid: %ld: no such pid"), (long)pid);
20 ! for (p = jobs[job]->pipe; p->next != jobs[job]->pipe; p = p->next)
21 ! if (p->status != EXECUTION_SUCCESS) fail = p->status;
27 ! p = jobs[job]->pipe;
30 ! if (p->status != EXECUTION_SUCCESS) fail = p->status;
33 ! while (p != jobs[job]->pipe);
40 ! fprintf (stderr, "[%d]%c ", job + 1,
41 (job == current_job) ? '+': ((job == previous_job) ? '-' : ' '));
45 ! fprintf (stderr, "%s%s",
46 p->command ? p->command : "",
47 p->next != jobs[job]->pipe? " | " : "");
51 ! printf ("[%d]%c ", job + 1,
52 (job == current_job) ? '+': ((job == previous_job) ? '-' : ' '));
57 p->command ? p->command : "",
58 p->next != jobs[job]->pipe? " | " : "");
63 ! fprintf (stderr, " &");
65 if (strcmp (wd, jobs[job]->wd) != 0)
66 ! fprintf (stderr, " (wd: %s)", polite_directory_format (jobs[job]->wd));
68 ! fprintf (stderr, "\n");
76 if (strcmp (wd, jobs[job]->wd) != 0)
77 ! printf (" (wd: %s)", polite_directory_format (jobs[job]->wd));