Results for builtins2.test.sh

statusdashbashmkshzshoshosh_ALT
pass 410981212
ok 111000
N-I 602400
BUG 221100
FAIL 000011
total131313131313
casedashbashmkshzshoshosh_ALTdescription
0ok pass pass pass pass pass command -v
details
1BUG BUG ok pass pass pass command -v with multiple names
detailsdetailsdetails
2BUG BUG pass pass pass pass command -v doesn't find non-executable file
detailsdetails
3pass pass pass pass pass pass command skips function lookup
4pass pass pass N-I pass pass command command seq 3
details
5pass pass pass N-I pass pass command command -v seq
details
6N-I ok BUG BUG pass pass history usage
detailsdetailsdetailsdetails
7N-I pass N-I N-I FAIL FAIL history -d to delete history item
detailsdetailsdetailsdetailsdetails
8pass pass N-I N-I pass pass $(command type ls)
detailsdetails
9N-I pass pass pass pass pass builtin
details
10N-I pass pass pass pass pass builtin ls not found
details
11N-I pass pass pass pass pass builtin no args
details
12N-I pass pass pass pass pass builtin command echo hi
details
55 passed, 3 OK, 12 not implemented, 6 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

dash0 command -v

stdout:
echo
0
myfunc
0
127
for
0
stderr:
dash1 command -v with multiple names

stdout:
echo
status=0
stderr:
bash1 command -v with multiple names

stdout:
echo
myfunc
for
status=0
stderr:
mksh1 command -v with multiple names

stdout:
echo
myfunc
status=1
stderr:
dash2 command -v doesn't find non-executable file

stdout:
/non-executable
status=0
/executable
status=0
stderr:
bash2 command -v doesn't find non-executable file

stdout:
/non-executable
status=0
/executable
status=0
stderr:
zsh4 command command seq 3

stdout:
stderr: 
zsh: command not found: command
zsh5 command command -v seq

stdout:
stderr: 
zsh: command not found: command
dash6 history usage

stdout:
status=127
status=127
status=127
status=127
status=127
stderr:
dash: 1: history: not found
dash: 3: history: not found
dash: 5: history: not found
dash: 7: history: not found
dash: 9: history: not found
bash6 history usage

stdout:
status=0
status=0
status=2
status=1
status=1
stderr:
bash: line 5: history: -5: invalid option
history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
bash: line 7: history: f: numeric argument required
bash: line 9: history: too: numeric argument required
mksh6 history usage

stdout:
status=1
status=1
status=1
status=1
status=1
stderr:
mksh: fc: history functions not available
mksh: <stdin>[3]: fc: history functions not available
mksh: <stdin>[5]: fc: history functions not available
mksh: <stdin>[7]: fc: history functions not available
mksh: <stdin>[9]: fc: history functions not available
zsh6 history usage

stdout:
status=1
status=1
status=1
status=1
status=1
stderr:
fc: no such event: 1
fc: no such event: 5
fc: no such event: 0
fc: event not found: f
fc: event not found: too
dash7 history -d to delete history item

stdout:
stderr: 
mksh7 history -d to delete history item

stdout:
stderr: 
zsh7 history -d to delete history item

stdout:
stderr: 
osh7 history -d to delete history item

[osh stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
  history -d 1
  ^~~~~~~
[ stdin ]:3: 'history' couldn't find item 1
  history -d -1
             ^~
[ stdin ]:6: 'history' got invalid integer for -d: -1
  history -d -2
             ^~
[ stdin ]:8: 'history' got invalid integer for -d: -2
osh_ALT7 history -d to delete history item

[osh_ALT stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
  history -d 1
  ^~~~~~~
[ stdin ]:3: 'history' couldn't find item 1
  history -d -1
             ^~
[ stdin ]:6: 'history' got invalid integer for -d: -1
  history -d -2
             ^~
[ stdin ]:8: 'history' got invalid integer for -d: -2
mksh8 $(command type ls)

stdout:
status=1
stderr:
mksh: <stdin>[3]: type: not found
zsh8 $(command type ls)

stdout:
FUNCTION
status=1
stderr:
zsh: command not found: type
dash9 builtin

stdout:
hi
stderr:
dash: 3: builtin: not found
dash10 builtin ls not found

stdout:
stderr: 
dash: 1: builtin: not found
dash11 builtin no args

stdout:
stderr: 
dash: 1: builtin: not found
dash12 builtin command echo hi

stdout:
stderr: 
dash: 1: builtin: not found