| status | bash | dash | mksh | zsh | ash | osh | |
| pass | 8 | 5 | 7 | 2 | 8 | 7 | |
| ok | 0 | 0 | 1 | 1 | 0 | 0 | |
| N-I | 0 | 2 | 0 | 0 | 0 | 0 | |
| BUG-2 | 0 | 0 | 0 | 1 | 0 | 0 | |
| BUG | 0 | 1 | 0 | 4 | 0 | 0 | |
| FAIL | 0 | 0 | 0 | 0 | 0 | 1 | |
| total | 8 | 8 | 8 | 8 | 8 | 8 | |
| case | bash | dash | mksh | zsh | ash | osh | description |
| 0 | pass | pass | pass | pass | pass | pass | test builtin - Unexpected trailing word '--' (#2409) |
| 1 | pass | pass | pass | BUG | pass | pass | test builtin: ( = ) is confusing: equality test or non-empty string test |
| details | |||||||
| 2 | pass | BUG | pass | BUG-2 | pass | pass | test builtin: ( == ) is confusing: equality test or non-empty string test |
| details | details | ||||||
| 3 | pass | N-I | pass | BUG | pass | pass | Allowed: [[ = ]] and [[ == ]] |
| details | details | ||||||
| 4 | pass | pass | ok | ok | pass | pass | Not allowed: [[ ) ]] and [[ ( ]] |
| details | details | ||||||
| 5 | pass | pass | pass | pass | pass | pass | test builtin: ( x ) behavior is the same in both cases |
| 6 | pass | pass | pass | BUG | pass | pass | [ -f = ] and [ -f == ] |
| details | |||||||
| 7 | pass | N-I | pass | BUG | pass | FAIL | [[ -f -f ]] and [[ -f == ]] |
| details | details | details |
37 passed, 2 OK, 2 not implemented, 6 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| zsh | 1 test builtin: ( = ) is confusing: equality test or non-empty string test stdout: status=0 status=1stderr: |
| dash | 2 test builtin: ( == ) is confusing: equality test or non-empty string test stdout: status=0 status=0stderr: |
| zsh | 2 test builtin: ( == ) is confusing: equality test or non-empty string test stdout: stderr: zsh: = not found |
| dash | 3 Allowed: [[ = ]] and [[ == ]] stdout: status=127 status=127stderr: dash: 1: [[: not found dash: 3: [[: not found |
| zsh | 3 Allowed: [[ = ]] and [[ == ]] stdout: status=0stderr: zsh: = not found |
| mksh | 4 Not allowed: [[ ) ]] and [[ ( ]] stdout: stderr: mksh: <stdin>[1]: syntax error: ')' expression expected |
| zsh | 4 Not allowed: [[ ) ]] and [[ ( ]] stdout: status=1stderr: zsh: parse error near `)' zsh: parse error near `echo' |
| zsh | 6 [ -f = ] and [ -f == ] stdout: status=1stderr: zsh: = not found |
| dash | 7 [[ -f -f ]] and [[ -f == ]] stdout: status=127 status=127stderr: dash: 1: [[: not found dash: 4: [[: not found |
| zsh | 7 [[ -f -f ]] and [[ -f == ]] stdout: status=1stderr: zsh: = not found |
| osh | 7 [[ -f -f ]] and [[ -f == ]] [osh stdout] Expected 'status=1\nstatus=1\n' Got 'status=1\n' [osh status] Expected 0 Got 2 stdout: status=1stderr: echo status=$? ^~~~ [ stdin ]:5: Expected ]] |