]>
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 | |
d233b485 CR |
19 | [1] Running sleep 2 & |
20 | [2] Running sleep 2 & | |
21 | [3] Running sleep 2 & | |
22 | [4]- Running sleep 2 & | |
23 | [5]+ Running ( sleep 2; exit 4 ) & | |
b80f6443 | 24 | 4 |
d166f048 | 25 | 0 |
b80f6443 | 26 | i killed it |
ac50fbac CR |
27 | 12 |
28 | [1]- Running sleep 20 & | |
29 | [3]+ Running sleep 20 & | |
8868edaf CR |
30 | 5: ok 1 |
31 | ./jobs5.sub: line 40: wait: %8: no such job | |
32 | 2: ok 2 | |
33 | 2: ok 3 | |
d233b485 | 34 | child1 exit status 0 |
8868edaf CR |
35 | [1]+ Running sleep 20 & |
36 | ./jobs7.sub: line 5: fg: no current jobs | |
37 | [1]+ Running sleep 20 & | |
b80f6443 | 38 | 0 |
8868edaf CR |
39 | ./jobs.tests: line 40: wait: %1: no such job |
40 | ./jobs.tests: line 45: fg: no job control | |
d166f048 JA |
41 | wait-for-pid |
42 | wait-errors | |
8868edaf CR |
43 | ./jobs.tests: line 58: wait: `1-1': not a pid or valid job spec |
44 | ./jobs.tests: line 59: wait: `-4': not a pid or valid job spec | |
d166f048 JA |
45 | wait-for-background-pids |
46 | async list wait-for-background-pids | |
47 | async list wait for child | |
48 | forked | |
49 | wait-when-no-children | |
8868edaf CR |
50 | posix jobs output |
51 | [1]+ Done sleep 1 | |
d166f048 | 52 | wait-for-job |
8868edaf | 53 | ./jobs.tests: line 84: wait: %2: no such job |
d166f048 JA |
54 | 127 |
55 | async list wait-for-job | |
56 | forked | |
57 | fg-bg 1 | |
8868edaf | 58 | sleep 2 |
d166f048 | 59 | fg-bg 2 |
8868edaf | 60 | sleep 2 |
d166f048 | 61 | fg-bg 3 |
8868edaf | 62 | sleep 2 |
d166f048 | 63 | fg-bg 4 |
8868edaf | 64 | sleep 2 |
d166f048 | 65 | fg-bg 5 |
8868edaf CR |
66 | ./jobs.tests: line 111: fg: %2: no such job |
67 | ./jobs.tests: line 112: bg: job 1 already in background | |
d166f048 | 68 | fg-bg 6 |
8868edaf | 69 | ./jobs.tests: line 119: fg: -s: invalid option |
d166f048 | 70 | fg: usage: fg [job_spec] |
8868edaf | 71 | ./jobs.tests: line 120: bg: -s: invalid option |
95732b49 | 72 | bg: usage: bg [job_spec ...] |
8868edaf | 73 | ./jobs.tests: line 125: disown: -s: invalid option |
a0c0a00f | 74 | disown: usage: disown [-h] [-ar] [jobspec ... | pid ...] |
8868edaf CR |
75 | ./jobs.tests: line 129: disown: %1: no such job |
76 | ./jobs.tests: line 132: disown: %2: no such job | |
d166f048 | 77 | wait-for-non-child |
8868edaf | 78 | ./jobs.tests: line 135: wait: pid 1 is not a child of this shell |
d166f048 JA |
79 | 127 |
80 | 3 -- 1 2 3 -- 1 - 2 - 3 | |
cce855bc JA |
81 | [1] Running sleep 300 & |
82 | [2]- Running sleep 350 & | |
83 | [3]+ Running sleep 400 & | |
d166f048 | 84 | running jobs: |
cce855bc JA |
85 | [1] Running sleep 300 & |
86 | [2]- Running sleep 350 & | |
87 | [3]+ Running sleep 400 & | |
8868edaf CR |
88 | ./jobs.tests: line 152: kill: %4: no such job |
89 | ./jobs.tests: line 154: jobs: %4: no such job | |
cce855bc JA |
90 | current job: |
91 | [3]+ Running sleep 400 & | |
92 | previous job: | |
93 | [2]- Running sleep 350 & | |
d166f048 JA |
94 | after kill -STOP |
95 | running jobs: | |
cce855bc JA |
96 | [1] Running sleep 300 & |
97 | [3]- Running sleep 400 & | |
d166f048 | 98 | stopped jobs: |
cce855bc | 99 | [2]+ Stopped sleep 350 |
d166f048 | 100 | after disown |
cce855bc JA |
101 | [2]+ Stopped sleep 350 |
102 | [3]- Running sleep 400 & | |
d166f048 | 103 | running jobs: |
cce855bc | 104 | [3]- Running sleep 400 & |
d166f048 | 105 | stopped jobs: |
cce855bc | 106 | [2]+ Stopped sleep 350 |
d166f048 JA |
107 | after kill -s CONT |
108 | running jobs: | |
cce855bc JA |
109 | [2]+ Running sleep 350 & |
110 | [3]- Running sleep 400 & | |
d166f048 JA |
111 | stopped jobs: |
112 | after kill -STOP, backgrounding %3: | |
113 | [3]+ sleep 400 & | |
114 | killing... | |
115 | done | |
116 | after KILL -STOP, foregrounding %1 | |
8868edaf | 117 | sleep 4 |
d166f048 | 118 | done |