command_ () { sh-spec spec/command_.test.sh ${REF_SHELLS[@]} $ZSH $OSH_LIST "$@" } command_: spec test case results

Results for command_.test.sh

statusdashbashmkshzshosh
pass 1312121214
ok 12231
BUG 11100
total1515151515
casedashbashmkshzshoshdescription
0pass pass pass pass pass Command block
1pass pass pass pass pass Permission denied
2pass pass pass pass pass Not a dir
3ok ok pass pass pass Name too long
detailsdetails
4pass pass pass pass pass External programs don't have _OVM in environment
5pass pass pass pass pass File with no shebang is executed
6pass pass pass pass pass File with relative path and no shebang is executed
7pass pass pass pass pass File in relative subdirectory and no shebang is executed
8pass pass pass pass pass $PATH lookup
9pass pass pass ok pass filling $PATH cache, then insert the same command earlier in cache
details
10pass pass ok ok pass filling $PATH cache, then deleting command
detailsdetails
11pass pass pass pass pass Non-executable on $PATH
12pass ok ok ok pass hash without args prints the cache
detailsdetailsdetails
13pass pass BUG pass pass hash with args
details
14BUG BUG pass pass ok hash -r doesn't allow additional args
detailsdetailsdetails
63 passed, 9 OK, 0 not implemented, 3 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash3 Name too long

stdout:
stderr: 
dash: 1: ./0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789: File name too long
bash3 Name too long

stdout:
stderr: 
bash: line 1: ./0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789: File name too long
zsh9 filling $PATH cache, then insert the same command earlier in cache

stdout:
two
one
one
stderr:
zsh: no matches found: one/*
mksh10 filling $PATH cache, then deleting command

stdout:
two
status=0
one
status=0
stderr:
zsh10 filling $PATH cache, then deleting command

stdout:
two
status=0
one
status=0
stderr:
bash12 hash without args prints the cache

stdout:
hits	command
   1	/usr/bin/whoami
status=0
stderr:
mksh12 hash without args prints the cache

stdout:
whoami=/usr/bin/whoami
status=0
stderr:
zsh12 hash without args prints the cache

stdout:
whoami=/usr/bin/whoami
status=0
stderr:
mksh13 hash with args

stdout:
status=0
/whoami
status=0
stderr:
dash14 hash -r doesn't allow additional args

stdout:
status=0
stderr:
bash14 hash -r doesn't allow additional args

stdout:
status=0
stderr:
osh14 hash -r doesn't allow additional args

stdout:
status=2
stderr:
  hash -r whoami >/dev/null  # avoid weird output with mksh
  ^~~~
[ stdin ]:1: 'hash' got extra arguments after -r