OILS / spec / empty-bodies.test.sh View on Github | oilshell.org

24 lines, 9 significant
1
2#### Empty do/done
3while false; do
4done
5echo empty
6## stdout: empty
7## OK dash/bash stdout-json: ""
8## OK dash/bash status: 2
9
10#### Empty case/esac
11case foo in
12esac
13echo empty
14## stdout: empty
15
16#### Empty then/fi
17if foo; then
18fi
19echo 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