Results for builtin-eval-source.test.sh

casedashbashmkshzshoshosh_ALTosh-byterundescription
0pass pass pass pass pass pass pass Eval
1pass pass pass pass pass pass pass Source
2ok pass pass ok pass pass pass Source nonexistent
detailsdetails
3ok ok pass pass pass pass pass Source with no arguments
detailsdetails
4N-I pass pass pass pass pass pass Source with arguments
details
5N-I pass pass pass pass pass pass Source from a function, mutating argv and defining a local var
details
6ok ok ok ok pass pass pass Source with syntax error
detailsdetailsdetailsdetails
7ok ok ok ok pass pass pass Eval with syntax error
detailsdetailsdetailsdetails

42 passed, 12 ok, 2 known unimplemented, 0 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

dash2 Source nonexistent

stdout:
status=127
stderr:
_tmp/spec-bin/dash: 1: source: not found
zsh2 Source nonexistent

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

stdout:
status=127
stderr:
_tmp/spec-bin/dash: 1: source: not found
bash3 Source with no arguments

stdout:
status=2
stderr:
_tmp/spec-bin/bash: line 1: source: filename argument required
source: usage: source filename [arguments]
dash4 Source with arguments

stdout:
show-argv:
stderr:
dash5 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:
dash6 Source with syntax error

stdout:
stderr: 
_tmp/spec-bin/dash: 2: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-eval-source.test.sh/syntax-error.sh: Syntax error: newline unexpected
bash6 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 >'
mksh6 Source with syntax error

stdout:
status=1
stderr:
_tmp/spec-bin/mksh: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-eval-source.test.sh/syntax-error.sh[1]: syntax error: 'newline' unexpected
zsh6 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'
dash7 Eval with syntax error

stdout:
stderr: 
_tmp/spec-bin/dash: 1: eval: Syntax error: end of file unexpected
bash7 Eval with syntax error

stdout:
status=1
stderr:
_tmp/spec-bin/bash: eval: line 1: syntax error near unexpected token `newline'
_tmp/spec-bin/bash: eval: line 1: `echo >'
mksh7 Eval with syntax error

stdout:
stderr: 
_tmp/spec-bin/mksh: syntax error: 'newline' unexpected
zsh7 Eval with syntax error

stdout:
status=1
stderr:
zsh: parse error near `>'