Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
From: bfox@AUREL.CALTECH.EDU (Brian Fox)
Newsgroups: gnu.bash.bug
Subject: Dead jobs not flushed?
Message-ID: <8908142117.AA24449@aurel.caltech.edu>
Date: 14 Aug 89 21:17:16 GMT
References: <1931@prune.bbn.com>
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: bfox@aurel.caltech.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 39


   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