mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 05:24:23 +01:00
19427: last job in jobs wasn't reported.
This commit is contained in:
parent
a5cced9099
commit
ce41b8785b
@ -1,3 +1,7 @@
|
||||
2004-02-17 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 19427: Src/jobs.c: last job in table wasn't reported with `jobs'.
|
||||
|
||||
2004-02-16 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* unposted: Completion/Unix/Command/_apachectl: complete also for
|
||||
|
@ -1488,14 +1488,14 @@ bin_fg(char *name, char **argv, Options ops, int func)
|
||||
int curmaxjob, ignorejob;
|
||||
if (unset(MONITOR) && oldmaxjob) {
|
||||
jobptr = oldjobtab;
|
||||
curmaxjob = oldmaxjob;
|
||||
curmaxjob = oldmaxjob ? oldmaxjob - 1 : 0;
|
||||
ignorejob = 0;
|
||||
} else {
|
||||
jobptr = jobtab;
|
||||
curmaxjob = maxjob;
|
||||
ignorejob = thisjob;
|
||||
}
|
||||
for (job = 0; job != curmaxjob; job++, jobptr++)
|
||||
for (job = 0; job <= curmaxjob; job++, jobptr++)
|
||||
if (job != ignorejob && jobptr->stat) {
|
||||
if ((!OPT_ISSET(ops,'r') && !OPT_ISSET(ops,'s')) ||
|
||||
(OPT_ISSET(ops,'r') && OPT_ISSET(ops,'s')) ||
|
||||
|
Loading…
Reference in New Issue
Block a user