Results for builtins-special.test.sh

casedashbashmkshoshosh_ALTdescription
0pass pass pass FAIL FAIL : is special and prefix assignments persist after special builtins
detailsdetails
1pass pass pass pass pass true is not special
2ok BUG pass FAIL FAIL Shift is special and the whole script exits if it returns non-zero
detailsdetailsdetailsdetails
3ok BUG pass FAIL FAIL set is special and fails, even if using || true
detailsdetailsdetailsdetails
4pass pass BUG FAIL FAIL Special builtins can't be redefined as functions
detailsdetailsdetails
5pass pass pass pass pass Non-special builtins CAN be redefined as functions

17 passed, 2 ok, 0 known unimplemented, 3 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

osh0 : is special and prefix assignments persist after special builtins

[osh stdout] Expected 'bar\n', got '\n'

stdout:
stderr: 
osh_ALT0 : is special and prefix assignments persist after special builtins

[osh_ALT stdout] Expected 'bar\n', got '\n'

stdout:
stderr: 
dash2 Shift is special and the whole script exits if it returns non-zero

stdout:
stderr: 
_tmp/spec-bin/dash: 3: shift: can't shift that many
bash2 Shift is special and the whole script exits if it returns non-zero

stdout:
status=1
stderr:
osh2 Shift is special and the whole script exits if it returns non-zero

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

stdout:
status=1
stderr:
osh_ALT2 Shift is special and the whole script exits if it returns non-zero

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

stdout:
status=1
stderr:
dash3 set is special and fails, even if using || true

stdout:
ok
stderr:
_tmp/spec-bin/dash: 1: shopt: not found
_tmp/spec-bin/dash: 3: set: Illegal option -o invalid_
bash3 set is special and fails, even if using || true

stdout:
ok
should not get here
stderr:
_tmp/spec-bin/bash: line 1: shopt: invalid_: invalid shell option name
_tmp/spec-bin/bash: line 3: set: invalid_: invalid option name
osh3 set is special and fails, even if using || true

[osh stdout] Expected 'ok\n', got 'ok\nshould not get here\n'
[osh status] Expected 1, got 0

stdout:
ok
should not get here
stderr:
  shopt -s invalid_ || true
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'invalid_'
  set -o invalid_ || true
         ^~~~~~~~
[ stdin ]:3: 'set' got invalid option 'invalid_'
osh_ALT3 set is special and fails, even if using || true

[osh_ALT stdout] Expected 'ok\n', got 'ok\nshould not get here\n'
[osh_ALT status] Expected 1, got 0

stdout:
ok
should not get here
stderr:
  shopt -s invalid_ || true
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'invalid_'
  set -o invalid_ || true
         ^~~~~~~~
[ stdin ]:3: 'set' got invalid option 'invalid_'
mksh4 Special builtins can't be redefined as functions

stdout:
status=0
stderr:
osh4 Special builtins can't be redefined as functions

[osh status] Expected 2, got 0

stdout:
status=0
stderr:
osh_ALT4 Special builtins can't be redefined as functions

[osh_ALT status] Expected 2, got 0

stdout:
status=0
stderr: