Results for builtin-eval-source.test.sh

statusdashbashmkshzshoshosh_ALT
pass 71611111818
ok 424500
N-I 501100
BUG 202100
total181818181818
casedashbashmkshzshoshosh_ALTdescription
0pass pass pass pass pass pass Eval
1BUG pass pass pass pass pass eval accepts/ignores --
details
2ok pass ok ok pass pass eval usage
detailsdetailsdetails
3pass pass pass pass pass pass Source
4ok pass pass ok pass pass Source nonexistent
detailsdetails
5N-I pass ok ok pass pass Source with no arguments
detailsdetailsdetails
6N-I pass pass pass pass pass Source with arguments
details
7N-I pass pass pass pass pass Source from a function, mutating argv and defining a local var
details
8ok ok ok ok pass pass Source with syntax error
detailsdetailsdetailsdetails
9ok ok ok ok pass pass Eval with syntax error
detailsdetailsdetailsdetails
10BUG pass BUG pass pass pass Eval in does tilde expansion
detailsdetails
11N-I pass BUG BUG pass pass Eval in bash does tilde expansion in array
detailsdetailsdetails
12N-I pass N-I N-I pass pass source works for files in current directory (bash only)
detailsdetailsdetails
13pass pass pass pass pass pass source looks in PATH for files
14pass pass pass pass pass pass source finds files in PATH before current dir
15pass pass pass pass pass pass source works for files in subdirectory
16pass pass pass pass pass pass exit within eval (regression)
17pass pass pass pass pass pass exit within source (regression)
81 passed, 15 OK, 7 not implemented, 5 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash1 eval accepts/ignores --

stdout:
stderr: 
dash: 1: eval: --: not found
dash2 eval usage

stdout:
127
127
stderr:
dash: 1: eval: -: not found
dash: 1: eval: -z: not found
mksh2 eval usage

stdout:
127
stderr:
mksh: -: not found
mksh: <stdin>[3]: eval: -z: unknown option
zsh2 eval usage

stdout:
0
127
stderr:
zsh: command not found: -z
dash4 Source nonexistent

stdout:
status=127
stderr:
dash: 1: source: not found
zsh4 Source nonexistent

stdout:
status=127
stderr:
source: no such file or directory: /nonexistent/path
dash5 Source with no arguments

stdout:
status=127
stderr:
dash: 1: source: not found
mksh5 Source with no arguments

stdout:
status=1
stderr:
mksh: <stdin>[1]: source: missing argument
zsh5 Source with no arguments

stdout:
status=1
stderr:
source: not enough arguments
dash6 Source with arguments

stdout:
show-argv:
stderr:
dash7 Source from a function, mutating argv and defining a local var

stdout:
source-argv: args to func
source-argv: to func
func
foo=foo_val
foo=
stderr:
dash8 Source with syntax error

stdout:
stderr: 
dash: 2: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-eval-source.test.sh/syntax-error.sh: Syntax error: newline unexpected
bash8 Source with syntax error

stdout:
status=1
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-eval-source.test.sh/syntax-error.sh: line 1: syntax error near unexpected token `newline'
/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-eval-source.test.sh/syntax-error.sh: line 1: `echo >'
mksh8 Source with syntax error

stdout:
status=1
stderr:
mksh: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-eval-source.test.sh/syntax-error.sh[1]: syntax error: 'newline' unexpected
zsh8 Source with syntax error

stdout:
status=126
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-eval-source.test.sh/syntax-error.sh:2: parse error near `\n'
dash9 Eval with syntax error

stdout:
stderr: 
dash: 1: eval: Syntax error: end of file unexpected
bash9 Eval with syntax error

stdout:
status=1
stderr:
bash: eval: line 1: syntax error near unexpected token `newline'
bash: eval: line 1: `echo >'
mksh9 Eval with syntax error

stdout:
stderr: 
mksh: syntax error: 'newline' unexpected
zsh9 Eval with syntax error

stdout:
status=1
stderr:
zsh: parse error near `>'
dash10 Eval in does tilde expansion

stdout:
FALSE
stderr:
dash: 4: [[: not found
dash: 5: [[: not found
mksh10 Eval in does tilde expansion

stdout:
FALSE
stderr:
dash11 Eval in bash does tilde expansion in array

stdout:
stderr: 
dash: 1: eval: Syntax error: "(" unexpected
mksh11 Eval in bash does tilde expansion in array

stdout:
FALSE
stderr:
zsh11 Eval in bash does tilde expansion in array

stdout:
FALSE
FALSE
stderr:
dash12 source works for files in current directory (bash only)

stdout:
stderr: 
dash: 3: .: cmd: not found
mksh12 source works for files in current directory (bash only)

stdout:
stderr: 
mksh: <stdin>[3]: .: cmd: No such file or directory
zsh12 source works for files in current directory (bash only)

stdout:
status=127
stderr:
.: no such file or directory: cmd