nul-bytes () { run-file nul-bytes "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
status | dash | bash | mksh | zsh | ash | osh | |
pass | 1 | 8 | 8 | 2 | 7 | 2 | |
ok | 0 | 0 | 0 | 3 | 1 | 4 | |
N-I | 7 | 0 | 0 | 0 | 0 | 0 | |
BUG | 0 | 0 | 0 | 3 | 0 | 0 | |
FAIL | 0 | 0 | 0 | 0 | 0 | 2 | |
total | 8 | 8 | 8 | 8 | 8 | 8 | |
case | dash | bash | mksh | zsh | ash | osh | description |
0 | N-I | pass | pass | BUG | pass | pass | NUL bytes with echo -e |
details | details | ||||||
1 | pass | pass | pass | pass | pass | pass | NUL bytes in printf format |
2 | N-I | pass | pass | ok | pass | ok | NUL bytes in printf value (OSH and zsh agree) |
details | details | details | |||||
3 | N-I | pass | pass | ok | pass | ok | NUL bytes with echo $'\0' (OSH and zsh agree) |
details | details | details | |||||
4 | N-I | pass | pass | BUG | pass | FAIL | NUL bytes and IFS splitting |
details | details | details | |||||
5 | N-I | pass | pass | BUG | pass | ok | NUL bytes with test -n |
details | details | details | |||||
6 | N-I | pass | pass | pass | ok | FAIL | NUL bytes with test -f |
details | details | details | |||||
7 | N-I | pass | pass | ok | pass | ok | NUL bytes with ${#s} (OSH and zsh agree) |
details | details | details |
28 passed, 8 OK, 7 not implemented, 3 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
dash | 0 NUL bytes with echo -e stdout: stderr: |
zsh | 0 NUL bytes with echo -e stdout: |