]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/jobs.right
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / jobs.right
1 ./jobs2.sub: line 9: fg: job 1 started without job control
2 fg: 1
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
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
25 0
26 i killed it
27 12
28 [1]- Running sleep 20 &
29 [3]+ Running sleep 20 &
30 0
31 ./jobs.tests: line 22: wait: %1: no such job
32 ./jobs.tests: line 27: fg: no job control
33 wait-for-pid
34 wait-errors
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
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
43 ./jobs.tests: line 63: wait: %2: no such job
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
56 ./jobs.tests: line 90: fg: %2: no such job
57 ./jobs.tests: line 91: bg: job 1 already in background
58 fg-bg 6
59 ./jobs.tests: line 98: fg: -s: invalid option
60 fg: usage: fg [job_spec]
61 ./jobs.tests: line 99: bg: -s: invalid option
62 bg: usage: bg [job_spec ...]
63 ./jobs.tests: line 104: disown: -s: invalid option
64 disown: usage: disown [-h] [-ar] [jobspec ...]
65 ./jobs.tests: line 108: disown: %1: no such job
66 ./jobs.tests: line 111: disown: %2: no such job
67 wait-for-non-child
68 ./jobs.tests: line 114: wait: pid 1 is not a child of this shell
69 127
70 3 -- 1 2 3 -- 1 - 2 - 3
71 [1] Running sleep 300 &
72 [2]- Running sleep 350 &
73 [3]+ Running sleep 400 &
74 running jobs:
75 [1] Running sleep 300 &
76 [2]- Running sleep 350 &
77 [3]+ Running sleep 400 &
78 ./jobs.tests: line 131: kill: %4: no such job
79 ./jobs.tests: line 133: jobs: %4: no such job
80 current job:
81 [3]+ Running sleep 400 &
82 previous job:
83 [2]- Running sleep 350 &
84 after kill -STOP
85 running jobs:
86 [1] Running sleep 300 &
87 [3]- Running sleep 400 &
88 stopped jobs:
89 [2]+ Stopped sleep 350
90 after disown
91 [2]+ Stopped sleep 350
92 [3]- Running sleep 400 &
93 running jobs:
94 [3]- Running sleep 400 &
95 stopped jobs:
96 [2]+ Stopped sleep 350
97 after kill -s CONT
98 running jobs:
99 [2]+ Running sleep 350 &
100 [3]- Running sleep 400 &
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