Re: jobs -p falsely reports the last background pid

2014-04-10 Thread Håkon Bugge
On 10. apr. 2014, at 17.14, Chet Ramey wrote: > On 4/9/14, 6:43 AM, Håkon Bugge wrote: > >> Bash Version: 4.2 >> Patch Level: 45 >> Release Status: release >> >> Description: >> This script never terminates: > > Bash holds on to processes and t

Re: jobs -p falsely reports the last background pid

2014-04-09 Thread Håkon Bugge
On 9. apr. 2014, at 14.04, Greg Wooledge wrote: > On Wed, Apr 09, 2014 at 12:43:40PM +0200, Håkon Bugge wrote: >> This script never terminates: >> -- >> #!/bin/bash >> >> for P in `seq 5`; do >>

jobs -p falsely reports the last background pid

2014-04-09 Thread Håkon Bugge
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat'\ -DLOCALEDIR='/usr/share/local