]>
Commit | Line | Data |
---|---|---|
b80f6443 | 1 | ./jobs2.sub: line 9: fg: job 1 started without job control |
cce855bc | 2 | fg: 1 |
bb70624e JA |
3 | Waiting for job 0 |
4 | job 0 returns 0 | |
5 | Waiting for job 1 | |
6 | job 1 returns 0 | |
7 | Waiting for job 2 | |
8 | job 2 returns 0 | |
9 | Waiting for job 3 | |
10 | job 3 returns 0 | |
11 | Waiting for job 4 | |
12 | job 4 returns 0 | |
13 | Waiting for job 5 | |
14 | job 5 returns 0 | |
15 | Waiting for job 6 | |
16 | job 6 returns 0 | |
17 | Waiting for job 7 | |
18 | job 7 returns 0 | |
b80f6443 JA |
19 | [1] Running sleep 5 & |
20 | [2] Running sleep 5 & | |
21 | [3] Running sleep 5 & | |
22 | [4]- Running sleep 5 & | |
23 | [5]+ Running ( sleep 5; exit 4 ) & | |
24 | 4 | |
d166f048 | 25 | 0 |
b80f6443 | 26 | i killed it |
ac50fbac CR |
27 | 12 |
28 | [1]- Running sleep 20 & | |
29 | [3]+ Running sleep 20 & | |
b80f6443 | 30 | 0 |
ac50fbac CR |
31 | ./jobs.tests: line 22: wait: %1: no such job |
32 | ./jobs.tests: line 27: fg: no job control | |
d166f048 JA |
33 | wait-for-pid |
34 | wait-errors | |
ac50fbac CR |
35 | ./jobs.tests: line 40: wait: `1-1': not a pid or valid job spec |
36 | ./jobs.tests: line 41: wait: `-4': not a pid or valid job spec | |
d166f048 JA |
37 | wait-for-background-pids |
38 | async list wait-for-background-pids | |
39 | async list wait for child | |
40 | forked | |
41 | wait-when-no-children | |
42 | wait-for-job | |
ac50fbac | 43 | ./jobs.tests: line 63: wait: %2: no such job |
d166f048 JA |
44 | 127 |
45 | async list wait-for-job | |
46 | forked | |
47 | fg-bg 1 | |
48 | sleep 5 | |
49 | fg-bg 2 | |
50 | sleep 5 | |
51 | fg-bg 3 | |
52 | sleep 5 | |
53 | fg-bg 4 | |
54 | sleep 5 | |
55 | fg-bg 5 | |
ac50fbac CR |
56 | ./jobs.tests: line 90: fg: %2: no such job |
57 | ./jobs.tests: line 91: bg: job 1 already in background | |
d166f048 | 58 | fg-bg 6 |
ac50fbac | 59 | ./jobs.tests: line 98: fg: -s: invalid option |
d166f048 | 60 | fg: usage: fg [job_spec] |
ac50fbac | 61 | ./jobs.tests: line 99: bg: -s: invalid option |
95732b49 | 62 | bg: usage: bg [job_spec ...] |
ac50fbac | 63 | ./jobs.tests: line 104: disown: -s: invalid option |
cce855bc | 64 | disown: usage: disown [-h] [-ar] [jobspec ...] |
ac50fbac CR |
65 | ./jobs.tests: line 108: disown: %1: no such job |
66 | ./jobs.tests: line 111: disown: %2: no such job | |
d166f048 | 67 | wait-for-non-child |
ac50fbac | 68 | ./jobs.tests: line 114: wait: pid 1 is not a child of this shell |
d166f048 JA |
69 | 127 |
70 | 3 -- 1 2 3 -- 1 - 2 - 3 | |
cce855bc JA |
71 | [1] Running sleep 300 & |
72 | [2]- Running sleep 350 & | |
73 | [3]+ Running sleep 400 & | |
d166f048 | 74 | running jobs: |
cce855bc JA |
75 | [1] Running sleep 300 & |
76 | [2]- Running sleep 350 & | |
77 | [3]+ Running sleep 400 & | |
ac50fbac CR |
78 | ./jobs.tests: line 131: kill: %4: no such job |
79 | ./jobs.tests: line 133: jobs: %4: no such job | |
cce855bc JA |
80 | current job: |
81 | [3]+ Running sleep 400 & | |
82 | previous job: | |
83 | [2]- Running sleep 350 & | |
d166f048 JA |
84 | after kill -STOP |
85 | running jobs: | |
cce855bc JA |
86 | [1] Running sleep 300 & |
87 | [3]- Running sleep 400 & | |
d166f048 | 88 | stopped jobs: |
cce855bc | 89 | [2]+ Stopped sleep 350 |
d166f048 | 90 | after disown |
cce855bc JA |
91 | [2]+ Stopped sleep 350 |
92 | [3]- Running sleep 400 & | |
d166f048 | 93 | running jobs: |
cce855bc | 94 | [3]- Running sleep 400 & |
d166f048 | 95 | stopped jobs: |
cce855bc | 96 | [2]+ Stopped sleep 350 |
d166f048 JA |
97 | after kill -s CONT |
98 | running jobs: | |
cce855bc JA |
99 | [2]+ Running sleep 350 & |
100 | [3]- Running sleep 400 & | |
d166f048 JA |
101 | stopped jobs: |
102 | after kill -STOP, backgrounding %3: | |
103 | [3]+ sleep 400 & | |
104 | killing... | |
105 | done | |
106 | after KILL -STOP, foregrounding %1 | |
107 | sleep 10 | |
108 | done |