source: trunk/essentials/app-shells/bash/tests/jobs4.sub

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 380 bytes
Line 
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
21# the sleep is intended to give the kill time to execute before the job
22# exits
23(sleep 1 ; cat ) &
24kill -1 %% && echo i killed it || echo could not kill it
Note: See TracBrowser for help on using the repository browser.