| 1 |
## oils_failures_allowed: 0
|
| 2 |
## compare_shells: ash dash bash mksh zsh
|
| 3 |
#
|
| 4 |
# Here we list tests where different shells disagree with each other. For example we
|
| 5 |
# encountered some cases where osh and bash agree, but ash doesnt. For alpine / abuild
|
| 6 |
# this can cause build failures. So even if we don't directly plan on fixing them (ever)
|
| 7 |
# it can still be useful to keep track of these cases. This is also what separates these
|
| 8 |
# cases from the cases in the divergence spec tests (we plan on fixing those).
|
| 9 |
# The packages where these disagreements were encountered are mentioned after the dash
|
| 10 |
|
| 11 |
|
| 12 |
export FOO=bar
|
| 13 |
set | grep bar | head -n 1
|
| 14 |
## STDOUT:
|
| 15 |
FOO=bar
|
| 16 |
## END
|
| 17 |
## OK ash/dash STDOUT:
|
| 18 |
FOO='bar'
|
| 19 |
## END
|
| 20 |
## OK zsh STDOUT:
|
| 21 |
## END
|
| 22 |
|
| 23 |
|
| 24 |
f() g() { echo 'hi'; }
|
| 25 |
## STDOUT:
|
| 26 |
## status: 2
|
| 27 |
## OK ash/dash/mksh/zsh status: 0
|
| 28 |
|