1
2 #### Empty do/done
3 while false; do
4 done
5 echo empty
6 ## stdout: empty
7 ## OK dash/bash stdout-json: ""
8 ## OK dash/bash status: 2
9
10 #### Empty case/esac
11 case foo in
12 esac
13 echo empty
14 ## stdout: empty
15
16 #### Empty then/fi
17 if foo; then
18 fi
19 echo empty
20 ## stdout: empty
21 ## OK dash/bash stdout-json: ""
22 ## OK dash/bash status: 2
23 ## OK mksh stdout-json: ""
24 ## OK mksh status: 1