I want to see the backgrounded jobs when inside a bash script. Is this possible? To illustrate I run the command /usr/bin/experiment here but end up with no output.
$ cat /usr/bin/experiment
#!/bin/bash
echo $(jobs)
$ watch ls
[1]+ Stopped watch ls
$ /usr/bin/experiment
$