rsalz@bbn.com (Rich Salz) (08/15/89)
It seems that BASH doesn't really free up an internal jobs slot until
I run the "jobs" command. I have "notify=1" in my .profile.
For example:
prune 1551: jobs
[1]+ Stopped Pnews
prune 1552: sleep 1&
[2] 24842
prune 1553: [2]- Done sleep 1
## Wait for first job to finish, then do another one; note the job
## number assigned is 3, not 2.
sleep 1&
[3] 24843
prune 1554: [3]- Done sleep 1
## Wait for the second sleep to finish, then see what's there; note
## the "Done" for an already done job.
jobs
[1]+ Stopped Pnews
[3]- Done sleep 1
prune 1555: sleep 1
prune 1556: jobs
[1]+ Stopped Pnews
prune 1557: fg
/r$
--
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.bfox@AUREL.CALTECH.EDU (Brian Fox) (08/15/89)
Date: 14 Aug 89 18:32:12 GMT
From: rsalz@bbn.com (Rich Salz)
Organization: BBN Systems and Technologies Corporation
Sender: bug-bash-request@prep.ai.mit.edu
It seems that BASH doesn't really free up an internal jobs slot until
I run the "jobs" command. I have "notify=1" in my .profile.
For example:
prune 1551: jobs
[1]+ Stopped Pnews
prune 1552: sleep 1&
[2] 24842
prune 1553: [2]- Done sleep 1
## Wait for first job to finish, then do another one; note the job
## number assigned is 3, not 2.
sleep 1&
[3] 24843
prune 1554: [3]- Done sleep 1
## Wait for the second sleep to finish, then see what's there; note
## the "Done" for an already done job.
jobs
[1]+ Stopped Pnews
[3]- Done sleep 1
prune 1555: sleep 1
prune 1556: jobs
[1]+ Stopped Pnews
prune 1557: fg
/r$
--
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.
Thanks for the bug report.
Fixed.
Brian