Consider the following:
$ AA=aa; BB=bb; (sleep 10; echo $AA $BB) & jobs
[1] 6626
[1]+ Running ( sleep 10; echo $AA $BB ) &
If there any way tell jobs command to output AA and BB substituted with
their values?
This is especially disturbing when doing something like this:
for i in $(seq 10); do ${commands[$i]} ${params[$i]} & done
Then jobs shows the list that only contains entries like
[2]+ Done ${commands[$i]} ${params[$i]}
And I have no idea which job exactly has finished.
--
View this message in context:
http://www.nabble.com/Unsubstituted-variables-in-%22jobs%22-output-tp18192567p18192567.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.