Results for var-num.test.sh

casedashbashmkshoshosh_ALTosh-byterundescription
0pass pass pass pass pass pass Normal and braced
1pass pass pass pass pass pass In function
2pass pass pass pass pass pass $0 with -c
3pass pass pass pass pass pass $0 with stdin
4pass pass pass pass pass FAIL $0 with -i
details
5pass pass pass pass pass pass $0 with filename
6pass pass pass pass pass pass $@ with filename

41 passed, 0 ok, 0 known unimplemented, 0 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

osh-byterun4 $0 with -i

[osh-byterun stdout] Expected 'sh\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 93, in __call__
    self.func_globals, {})
  File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 164, in make_frame
    frame = Frame(code, f_globals, f_locals, self.frame)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 169, in __init__
    self.f_builtins = f_locals['__builtins__']
KeyError: '__builtins__'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 93, in __call__
    self.func_globals, {})
  File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 164, in make_frame
    frame = Frame(code, f_globals, f_locals, self.frame)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 169, in __init__
    self.f_builtins = f_locals['__builtins__']
KeyError: '__builtins__'
osh 'shopt' usage error: Invalid option 'globstar'
FATAL: maximum recursion depth exceeded in __instancecheck__
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 93, in __call__
    self.func_globals, {})
  File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 164, in make_frame
    frame = Frame(code, f_globals, f_locals, self.frame)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 169, in __init__
    self.f_builtins = f_locals['__builtins__']
KeyError: '__builtins__'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 93, in __call__
    self.func_globals, {})
  File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 164, in make_frame
    frame = Frame(code, f_globals, f_locals, self.frame)
  File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 169, in __init__
    self.f_builtins = f_locals['__builtins__']
KeyError: '__builtins__'