Results for builtin-misc.test.sh

statusdashbashmkshzshosh
pass 33336
ok 24210
N-I 20010
BUG 00220
FAIL 00001
total77777
casedashbashmkshzshoshdescription
0N-I ok BUG BUG FAIL history builtin usage
detailsdetailsdetailsdetailsdetails
1ok ok ok ok pass Print shell strings with weird chars: set and printf %q and ${x@Q}
detailsdetailsdetailsdetails
2N-I ok ok N-I pass Print shell strings with normal chars: set and printf %q and ${x@Q}
detailsdetailsdetailsdetails
3pass pass pass pass pass time pipeline
4pass pass pass pass pass shift
5ok pass pass pass pass Shifting too far
details
6pass ok BUG BUG pass Invalid shift argument
detailsdetailsdetails
18 passed, 9 OK, 3 not implemented, 4 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

dash0 history builtin 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
bash0 history builtin 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
mksh0 history builtin 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
zsh0 history builtin 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
osh0 history builtin usage

[osh stdout] Expected 'status=0\nstatus=0\nstatus=2\nstatus=2\nstatus=2\n' Got 'status=0\nstatus=0\nstatus=2\n'
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
status=0
status=0
status=2
stderr:
  history -5  # invalid flag
          ^~
[ stdin ]:5: 'history' doesn't accept flag -5
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 201, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1218, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 365, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 2045, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1844, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1579, in _Dispatch
    status = self._DoSimple(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 868, in _DoSimple
    status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 545, in _RunSimpleCommand
    run_flags)
  File "/home/uke/oil/core/executor.py", line 343, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/uke/oil/core/executor.py", line 204, in RunBuiltin
    return self.RunBuiltinProc(builtin_proc, cmd_val)
  File "/home/uke/oil/core/executor.py", line 214, in RunBuiltinProc
    status = builtin_proc.Run(cmd_val)
  File "/home/uke/oil/builtin/readline_osh.py", line 215, in Run
    e_usage('got invalid argument %r' % num_arg, num_arg_loc)
NameError: global name 'e_usage' is not defined
dash1 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
stderr: 
bash1 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
foo=$'a\nb\001c\'d'
pf  $'a\nb\001c\'d'
@Q  $'a\nb\001c\'d'
stderr:
mksh1 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
stderr: 
zsh1 Print shell strings with weird chars: set and printf %q and ${x@Q}

stdout:
stderr: 
dash2 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
stderr: 
bash2 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
foo=spam
declare -- foo="spam"
pf  spam
@Q  'spam'
stderr:
mksh2 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
foo=spam
typeset foo=spam
pf  spam
@Q  spam
stderr:
zsh2 Print shell strings with normal chars: set and printf %q and ${x@Q}

stdout:
stderr: 
dash5 Shifting too far

stdout:
stderr: 
dash: 2: shift: can't shift that many
bash6 Invalid shift argument

stdout:
stderr: 
bash: line 1: shift: ZZZ: numeric argument required
mksh6 Invalid shift argument

stdout:
stderr: 
zsh6 Invalid shift argument

stdout:
stderr: