]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/jobs4.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / jobs4.sub
CommitLineData
b80f6443
JA
1# test being able to use job control notation in jobs/kill/wait without
2# job control active, as the SUS requires
3
4sleep 5 &
5
6sleep 5 &
7sleep 5 &
8sleep 5 &
9(sleep 5 ; exit 4) &
10
11jobs
12
13wait %%
14echo $?
15
16wait %1
17echo $?
18
19wait
20
95732b49
JA
21# the sleep is intended to give the kill time to execute before the job
22# exits
23(sleep 1 ; cat ) &
b80f6443 24kill -1 %% && echo i killed it || echo could not kill it