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