1begin explain
2# .echoOff
3# .echoTmpl
4echo "false regular"
5# .runChkTmpl
6{ false regular
7} || exit $?
8# .echoOn
9# .runChkTmpl
10{ : silent
11} || exit $?
12# .echoOn
13false ignore-errors
14echo run despite the -n option
15run despite the -n option
16end explain
17
18begin combined
19
20silent=no always=no ignerr=no
21# .echoOff
22# .echoTmpl
23echo "echo running"
24# .runChkTmpl
25{ echo running
26} || exit $?
27# .echoOn
28
29silent=no always=no ignerr=yes
30echo running; false
31
32silent=no always=yes ignerr=no
33echo running
34running
35
36silent=no always=yes ignerr=yes
37echo running; false
38running
39*** Error code 1 (ignored)
40
41silent=yes always=no ignerr=no
42# .runChkTmpl
43{ echo running
44} || exit $?
45# .echoOn
46
47silent=yes always=no ignerr=yes
48echo running; false
49# .echoOn
50
51silent=yes always=yes ignerr=no
52echo running
53running
54
55silent=yes always=yes ignerr=yes
56echo running; false
57running
58*** Error code 1 (ignored)
59
60end combined
61exit status 0
62