Results for print-source-code.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 4003330032
ok 0000100000
FAIL 0441014412
total4444444444
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL pass pass pass FAIL FAIL pass pass typeset -f prints function source code
detailsdetailsdetailsdetails
1pass FAIL FAIL pass pass pass FAIL FAIL pass pass typeset -f with function keyword (ksh style)
detailsdetailsdetailsdetails
2pass FAIL FAIL pass pass pass FAIL FAIL pass FAIL typeset -f prints function source code - nested functions
detailsdetailsdetailsdetailsdetails
3pass FAIL FAIL FAIL ok FAIL FAIL FAIL FAIL FAIL OSH doesn't print non { } function bodies (rare)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
18 passed, 1 OK, 0 not implemented, 0 BUG, 21 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

dash0 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
ash0 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 ";"
toysh0 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: ;
sush0 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: ;
dash1 typeset -f with function keyword (ksh style)

[dash status] Expected 0, got 2

stdout:
serialized
stderr:
dash: 1: function: not found
dash: 3: Syntax error: "}" unexpected
ash1 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 ";"
toysh1 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: ;
sush1 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: ;
dash2 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
ash2 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 ";"
toysh2 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: ;
sush2 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: ;
osh2 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
dash3 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
ash3 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
zsh3 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:
mksh3 OSH doesn't print non { } function bodies (rare)

stdout:
f() ( echo "subshell body" ) 
stderr:
ksh3 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:
toysh3 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
sush3 OSH doesn't print non { } function bodies (rare)

[sush stdout] Expected "f () \n{ \n ( echo 'subshell body' )\n}\n" Got '\n'

stdout:
stderr: 
brush3 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:
osh3 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: