$jobstates  –  Mapping of job number to state

$jobstates maps job numbers to job state. Each value is of the form job-state:mark:pid=state....

Examples

Run job and print job states
1
2
ping -c 10 1.1.1.1 >/dev/null &                                                                                                                    ~
typeset jobstates
Output:
1
2
[1] 288088
jobstates=( [1]='running:+:288088=running' )
BashSupport Pro is a Zsh IDE with support for $jobstatestry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal