Results for builtin-bind.test.sh

statusbashosh
pass 33
FAIL 22
total55
casebashoshdescription
0pass pass bind -l should report readline functions
1FAIL FAIL bind -p -P to print function names and key bindings
detailsdetails
2pass pass bind -s -S accepted
3pass pass bind -v -V accepted
4FAIL FAIL bind -q
detailsdetails
6 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

bash1 bind -p -P to print function names and key bindings

[bash stdout] Expected '"\\C-p": menu-complete-backward\n\nmenu-complete-backward can be found on "\\C-p".\n' Got '# menu-complete-backward (not bound)\n\nmenu-complete-backward is not bound to any keys\n'

stdout:
# menu-complete-backward (not bound)

menu-complete-backward is not bound to any keys
stderr:
bash: line 1: bind: warning: line editing not enabled
bash: line 4: bind: warning: line editing not enabled
osh1 bind -p -P to print function names and key bindings

[osh stdout] Expected '"\\C-p": menu-complete-backward\n\nmenu-complete-backward can be found on "\\C-p".\n' Got '# menu-complete-backward (not bound)\n\nmenu-complete-backward is not bound to any keys\n'

stdout:
# menu-complete-backward (not bound)

menu-complete-backward is not bound to any keys
stderr:
bash4 bind -q

[bash stdout] Expected 'status=1\nvi-subst is not bound to any keys.\nstatus=1\nmenu-complete can be invoked via "\\C-n".\nstatus=0\n' Got 'status=1\nvi-subst is not bound to any keys.\nstatus=1\nmenu-complete is not bound to any keys.\nstatus=1\n'

stdout:
status=1
vi-subst is not bound to any keys.
status=1
menu-complete is not bound to any keys.
status=1
stderr:
bash: line 1: bind: warning: line editing not enabled
bash: line 1: bind: `zz-bad': unknown function name
bash: line 5: bind: warning: line editing not enabled
bash: line 8: bind: warning: line editing not enabled
osh4 bind -q

[osh stdout] Expected 'status=1\nvi-subst is not bound to any keys.\nstatus=1\nmenu-complete can be invoked via "\\C-n".\nstatus=0\n' Got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
  bind -q zz-bad
  ^~~~
[ stdin ]:1: bind error: `zz-bad': unknown function name
  bind -q vi-subst
  ^~~~
[ stdin ]:5: bind error: vi-subst is not bound to any keys
  bind -q menu-complete
  ^~~~
[ stdin ]:8: bind error: menu-complete is not bound to any keys