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