builtin-type () { run-file builtin-type "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } builtin-type: spec test case results

Results for builtin-type.test.sh

statusbashzshmkshdashashosh
pass 310214
ok 134010
BUG 000220
total444444
casebashzshmkshdashashoshdescription
0pass ok ok pass pass pass type -> keyword builtin
detailsdetails
1ok pass ok pass ok pass type -> alias function external
detailsdetailsdetails
2pass ok ok BUG BUG pass type of relative path
detailsdetailsdetailsdetails
3pass ok ok BUG BUG pass type -> not found
detailsdetailsdetailsdetails
11 passed, 9 OK, 0 not implemented, 4 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

zsh0 type -> keyword builtin

stdout:
while is a reserved word
cd is a shell builtin
stderr:
mksh0 type -> keyword builtin

stdout:
while is a reserved word
cd is a shell builtin
stderr:
bash1 type -> alias function external

stdout:
ll is aliased to ls -l
f is a function
f () 
{ 
    echo hi
}
date is _tmp/date
stderr:
mksh1 type -> alias function external

stdout:
ll is an alias for ls -l
f is a function
date is a tracked alias for _tmp/date
stderr:
mksh: <stdin>[1]: shopt: not found
ash1 type -> alias function external

stdout:
ll is an alias for ls -l
f is a function
date is _tmp/date
stderr:
ash: shopt: not found
zsh2 type of relative path

stdout:
_tmp/file not found
_tmp/ex is _tmp/ex
stderr:
mksh2 type of relative path

stdout:
_tmp/file not found
_tmp/ex is _tmp/ex
stderr:
dash2 type of relative path

stdout:
_tmp/file is _tmp/file
_tmp/ex is _tmp/ex
stderr:
ash2 type of relative path

stdout:
_tmp/file is _tmp/file
_tmp/ex is _tmp/ex
stderr:
zsh3 type -> not found

stdout:
zz not found
status=1
stderr:
mksh3 type -> not found

stdout:
zz not found
status=1
stderr:
dash3 type -> not found

stdout:
zz: not found
status=127
stderr:
ash3 type -> not found

stdout:
zz: not found
status=127
stderr: