I'm trying to use jobs builtin to see which of the jobs that my shellscript spawned have exited. But it just doesn't seem to work. For example, consider the following:
hjstein@blinky:~$ cat jobtest
tail -f ~/.bashrc >/dev/null &
hjstein@blinky:~$ ps -aux | grep tail
hjstein 21272 1.0 0.4 880 316 ? S 13:12 0:00 tail -f /home/hjstein
hjstein 21274 0.0 0.5 972 344 ? S 13:12 0:00 grep tail
The tail is running, but jobs doesn't report anything. WHY!?!?!?!
Also, how do I get around it?
This is on linux with bash. zsh behaves the same way.