Lines Matching full:yes
6 #cleaning 'yes' processes
7 killall yes >/dev/null 2>&1
15 yes >/dev/null &
17 testing "pattern" "pkill yes && sleep 1 && (pgrep yes || echo 'yes')" \
18 "yes\n" "" ""
19 killall yes >/dev/null 2>&1
21 yes >/dev/null &
22 yes print1 >/dev/null &
23 yes print2 >/dev/null &
25 testing "pattern (multiple)" "pkill yes && sleep 1 &&
26 (pgrep yes || echo 'yes')" "yes\n" "" ""
27 killall yes >/dev/null 2>&1
29 yes >/dev/null &
31 testing "-f pattern (one)" "pkill -f yes && sleep 1 &&
32 (pgrep yes || echo 'yes')" "yes\n" "" ""
33 killall yes >/dev/null 2>&1
35 yes print1 >/dev/null &
37 testing "-f pattern args" "pkill -f \"yes print1\" && sleep 1 &&
38 (pgrep yes || echo 'yes')" "yes\n" "" ""
39 killall yes >/dev/null 2>&1
41 yes >/dev/null &
42 yes print1 >/dev/null &
43 yes print2 >/dev/null &
45 testing "-f pattern (multiple)" "pkill -f yes && sleep 1 &&
46 (pgrep yes || echo 'yes')" "yes\n" "" ""
47 killall yes >/dev/null 2>&1
49 yes this-is-unlikely-to-appear-otherwise >/dev/null &
52 sleep 1 && (pgrep yes || echo 'yes')" "yes\n" "" ""
53 killall yes >/dev/null 2>&1
55 yes >/dev/null &
57 yes >/dev/null &
60 testing "-n pattern" "pkill -n yes && sleep 1 && pgrep yes" \
62 killall yes >/dev/null 2>&1
64 yes >/dev/null &
67 yes >/dev/null &
70 testing "-o pattern" "pkill -o yes && sleep 1 && pgrep yes" \
72 killall yes >/dev/null 2>&1
74 yes >/dev/null &
76 testing "-s (blank) pattern" "pkill -s '' yes && sleep 1 &&
77 (pgrep yes || echo 'yes')" "yes\n" "" ""
78 killall yes >/dev/null 2>&1
80 yes >/dev/null &
82 testing "-s 0 pattern" "pkill -s 0 yes && sleep 1 &&
83 (pgrep yes || echo 'yes')" "yes\n" "" ""
84 killall yes >/dev/null 2>&1
86 yes >/dev/null &
90 testing "-P parent_prodId pattern" "pkill -P $proc_p yes && sleep 1 &&
91 (pgrep yes || echo 'yes')" "yes\n" "" ""
92 killall yes >/dev/null 2>&1
94 yes >/dev/null &
96 testing "-9 pattern" "pkill -9 yes && sleep 1 &&
97 (pgrep yes || echo 'yes')" "yes\n" "" ""
98 killall yes >/dev/null 2>&1
100 yes >/dev/null &
102 testing "return success" "pkill yes && echo success" "success\n" "" ""
103 killall yes >/dev/null 2>&1