Results for func.test.sh

casedashbashmkshoshdescription
0pass pass pass pass Locals don't leak
1pass pass pass pass Globals leak
2pass pass pass pass Return statement
3N-I N-I N-I pass Return at top level is error
detailsdetailsdetails
4pass pass pass pass Dynamic Scope
5pass pass pass pass Dynamic Scope Mutation (wow this is bad)
6pass pass pass pass Assign local separately
7pass pass pass pass Assign a local and global on same line

29 passed, 0 ok, 3 known unimplemented, 0 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

dash3 Return at top level is error

stdout:
stderr: 
bash3 Return at top level is error

stdout:
bad
stderr:
/bin/bash: line 1: return: can only `return' from a function or sourced script
mksh3 Return at top level is error

stdout:
stderr: