| status | bash | dash | ash | zsh | mksh | ksh | toysh | sush | brush | osh | |
| pass | 4 | 0 | 0 | 3 | 3 | 3 | 0 | 0 | 3 | 2 | |
| ok | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | |
| FAIL | 0 | 4 | 4 | 1 | 0 | 1 | 4 | 4 | 1 | 2 | |
| total | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | |
| case | bash | dash | ash | zsh | mksh | ksh | toysh | sush | brush | osh | description |
| 0 | pass | FAIL | FAIL | pass | pass | pass | FAIL | FAIL | pass | pass | typeset -f prints function source code |
| details | details | details | details | ||||||||
| 1 | pass | FAIL | FAIL | pass | pass | pass | FAIL | FAIL | pass | pass | typeset -f with function keyword (ksh style) |
| details | details | details | details | ||||||||
| 2 | pass | FAIL | FAIL | pass | pass | pass | FAIL | FAIL | pass | FAIL | typeset -f prints function source code - nested functions |
| details | details | details | details | details | |||||||
| 3 | pass | FAIL | FAIL | FAIL | ok | FAIL | FAIL | FAIL | FAIL | FAIL | OSH doesn't print non { } function bodies (rare) |
| details | details | details | details | details | details | details | details | details |
18 passed, 1 OK, 0 not implemented, 0 BUG, 21 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| dash | 0 typeset -f prints function source code [dash stdout] Expected 'serialized\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: typeset: not found dash: 1: Syntax error: ";" unexpected |
| ash | 0 typeset -f prints function source code [ash stdout] Expected 'serialized\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: typeset: not found ash: syntax error: unexpected ";" |
| toysh | 0 typeset -f prints function source code [toysh stdout] Expected 'serialized\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: sh: typeset: No such file or directory -c: line 1: sh: syntax error: ; |
| sush | 0 typeset -f prints function source code [sush stdout] Expected 'serialized\n', got '' [sush status] Expected 0, got 2 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: Unexpected token: ; |
| dash | 1 typeset -f with function keyword (ksh style) [dash status] Expected 0, got 2 stdout: serializedstderr: dash: 1: function: not found dash: 3: Syntax error: "}" unexpected |
| ash | 1 typeset -f with function keyword (ksh style) [ash stdout] Expected 'serialized\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: typeset: not found ash: syntax error: unexpected ";" |
| toysh | 1 typeset -f with function keyword (ksh style) [toysh stdout] Expected 'serialized\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: sh: typeset: No such file or directory -c: line 1: sh: syntax error: ; |
| sush | 1 typeset -f with function keyword (ksh style) [sush stdout] Expected 'serialized\n', got '' [sush status] Expected 0, got 2 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: Unexpected token: ; |
| dash | 2 typeset -f prints function source code - nested functions [dash stdout] Expected 'outer\ninner\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 8: typeset: not found dash: 1: Syntax error: ";" unexpected |
| ash | 2 typeset -f prints function source code - nested functions [ash stdout] Expected 'outer\ninner\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: typeset: not found ash: syntax error: unexpected ";" |
| toysh | 2 typeset -f prints function source code - nested functions [toysh stdout] Expected 'outer\ninner\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: sh: typeset: No such file or directory -c: line 1: sh: syntax error: ; |
| sush | 2 typeset -f prints function source code - nested functions [sush stdout] Expected 'outer\ninner\n', got '' [sush status] Expected 0, got 2 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: Unexpected token: ; |
| osh | 2 typeset -f prints function source code - nested functions [osh stdout] Expected 'outer\ninner\n', got '' [osh status] Expected 0, got 2 stdout: stderr: ; outer; inner ^ [ -c flag ]:1: Invalid word while parsing command |
| dash | 3 OSH doesn't print non { } function bodies (rare) [dash stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got '\n' stdout: stderr: dash: 3: typeset: not found |
| ash | 3 OSH doesn't print non { } function bodies (rare) [ash stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got '\n' stdout: stderr: ash: typeset: not found |
| zsh | 3 OSH doesn't print non { } function bodies (rare) [zsh stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got "f () {\n\t(\n\t\techo 'subshell body'\n\t)\n}\n" stdout: f () {
(
echo 'subshell body'
)
}
stderr: |
| mksh | 3 OSH doesn't print non { } function bodies (rare) stdout: f() ( echo "subshell body" )stderr: |
| ksh | 3 OSH doesn't print non { } function bodies (rare) [ksh stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got 'f() ( \x1bcho "subshell body" ) \n' stdout: f() ( cho "subshell body" )stderr: |
| toysh | 3 OSH doesn't print non { } function bodies (rare) [toysh stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got '\n' stdout: stderr: sh: typeset: No such file or directory |
| sush | 3 OSH doesn't print non { } function bodies (rare) [sush stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got '\n' stdout: stderr: |
| brush | 3 OSH doesn't print non { } function bodies (rare) [brush stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got "f () \n( echo 'subshell body' )\n" stdout: f () ( echo 'subshell body' )stderr: |
| osh | 3 OSH doesn't print non { } function bodies (rare) [osh stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got 'f() { : "function body not available"; }\n' stdout: f() { : "function body not available"; }
stderr: |