OILS / spec / empty-bodies.test.sh View on Github | oils.pub

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