Results for builtins.test.sh

statusoshosh_.pyosh_.cc
pass 33135
FAIL 12129
total343434
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL exec builtin
detailsdetails
1pass FAIL FAIL exec builtin with redirects
detailsdetails
2pass FAIL FAIL exec builtin with here doc
detailsdetails
3pass FAIL FAIL exec builtin accepts --
detailsdetails
4pass FAIL FAIL exec -- 2>&1
detailsdetails
5pass pass FAIL cd and $PWD
details
6pass FAIL FAIL $OLDPWD
detailsdetails
7pass pass FAIL pwd
details
8pass FAIL FAIL pwd after cd ..
detailsdetails
9pass FAIL FAIL pwd with symlink and -P
detailsdetails
10pass pass FAIL setting $PWD doesn't affect the value of 'pwd' builtin
details
11pass pass FAIL unset PWD; then pwd
details
12pass FAIL FAIL 'unset PWD; pwd' before any cd (tickles a rare corner case)
detailsdetails
13pass FAIL FAIL lie about PWD; pwd before any cd
detailsdetails
14pass pass FAIL remove pwd dir
details
15pass FAIL FAIL pwd in symlinked dir on shell initialization
detailsdetails
16pass FAIL FAIL Test the current directory after 'cd ..' involving symlinks
detailsdetails
17pass FAIL FAIL cd with no arguments
detailsdetails
18pass pass FAIL cd to nonexistent dir
details
19pass FAIL FAIL cd away from dir that was deleted
detailsdetails
20pass pass FAIL cd permits double bare dash
details
21pass FAIL FAIL cd to symlink with -L and -P
detailsdetails
22pass FAIL FAIL cd to relative path with -L and -P
detailsdetails
23pass FAIL FAIL Exit out of function
detailsdetails
24pass pass pass Exit builtin with invalid arg
25pass pass pass Exit builtin with too many args
26pass FAIL FAIL time block
detailsdetails
27pass FAIL FAIL time pipeline
detailsdetails
28pass pass FAIL shift
details
29pass pass pass Shifting too far
30pass pass pass Invalid shift argument
31pass pass pass get umask
32pass FAIL FAIL set umask in octal
detailsdetails
33FAIL FAIL FAIL set umask symbolically
detailsdetailsdetails
51 passed, 0 OK, 0 not implemented, 0 BUG, 51 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.py0 exec builtin

[osh_.py stdout] Expected 'hi\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 3
osh_.cc0 exec builtin

[osh_.cc stdout] Expected 'hi\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py1 exec builtin with redirects

[osh_.py stderr] Expected 'to stderr\n', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 3\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 3
osh_.cc1 exec builtin with redirects

[osh_.cc stderr] Expected 'to stderr\n', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py2 exec builtin with here doc

[osh_.py stdout] Expected 'x=one\ny=two\nDONE\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
Error running ['/spec/builtins-exec-here-doc-helper.sh']: [Errno 2] No such file or directory
osh_.cc2 exec builtin with here doc

[osh_.cc stdout] Expected 'x=one\ny=two\nDONE\n', got "(cmd_value.Argv argv:['/spec/builtins-exec-here-doc-helper.sh'] arg_spids:[2])\n"

stdout:
(cmd_value.Argv argv:['/spec/builtins-exec-here-doc-helper.sh'] arg_spids:[2])
stderr:
Unhandled SimpleCommand
osh_.py3 exec builtin accepts --

[osh_.py stdout] Expected 'hi\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 3
osh_.cc3 exec builtin accepts --

[osh_.cc stdout] Expected 'hi\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py4 exec -- 2>&1

[osh_.py stdout] Expected 'stdout\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 3
osh_.cc4 exec -- 2>&1

[osh_.cc stdout] Expected 'stdout\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.cc5 cd and $PWD

[osh_.cc stdout] Expected '/\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py6 $OLDPWD

[osh_.py stdout] Expected 'old: /\nOLDPWD=/\n/\n', got 'old: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\n/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\n'

stdout:
old: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh
/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh
stderr:
[??? no location ???] $HOME isn't defined
osh_.cc6 $OLDPWD

[osh_.cc stdout] Expected 'old: /\nOLDPWD=/\n/\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc7 pwd

[osh_.cc stdout] Expected '/\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py8 pwd after cd ..

[osh_.py stdout] Expected 'dir-two\ndir-one\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
mkdir: cannot create directory ‘/dir-one’: Permission denied
  cd $dir
     ^~~~
[ stdin ]:3: cd '/dir-one/dir-two': No such file or directory
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc8 pwd after cd ..

[osh_.cc stdout] Expected 'dir-two\ndir-one\n', got "(cmd_value.Argv argv:[mkdir -p '/dir-one/dir-two'] arg_spids:[4 6 8])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/dir-one/dir-two'] arg_spids:[4 6 8])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py9 pwd with symlink and -P

[osh_.py stdout] Expected 'pwd:\nsymlink\npwd -P:\ntarget\n', got 'pwd:\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
pwd:
stderr:
mkdir: cannot create directory ‘/builtins-pwd-1’: Permission denied
ln: failed to create symbolic link '/builtins-pwd-1/symlink': No such file or directory
  cd $tmp/symlink
     ^~~~
[ stdin ]:4: cd '/builtins-pwd-1/symlink': No such file or directory
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc9 pwd with symlink and -P

[osh_.cc stdout] Expected 'pwd:\nsymlink\npwd -P:\ntarget\n', got "(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-1/target'] arg_spids:[4 6 8])\n(cmd_value.Argv\n argv: [ln -s -f '/builtins-pwd-1/target' '/builtins-pwd-1/symlink']\n arg_spids: [11 13 15 17 20]\n)\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-1/target'] arg_spids:[4 6 8])
(cmd_value.Argv
  argv: [ln -s -f '/builtins-pwd-1/target' '/builtins-pwd-1/symlink']
  arg_spids: [11 13 15 17 20]
)
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc10 setting $PWD doesn't affect the value of 'pwd' builtin

[osh_.cc stdout] Expected 'before foo\n/tmp/oil-spec-test/pwd\nafter foo\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc11 unset PWD; then pwd

[osh_.cc stdout] Expected 'PWD=\n/tmp/oil-spec-test/pwd\nPWD=\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py12 'unset PWD; pwd' before any cd (tickles a rare corner case)

[osh_.py stdout] Expected '/tmp/oil-spec-test/pwd-2\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
Error running ['-c', 'unset PWD; pwd']: [Errno 2] No such file or directory
osh_.cc12 'unset PWD; pwd' before any cd (tickles a rare corner case)

[osh_.cc stdout] Expected '/tmp/oil-spec-test/pwd-2\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-2'] arg_spids:[3 5 7])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-2'] arg_spids:[3 5 7])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py13 lie about PWD; pwd before any cd

[osh_.py stdout] Expected '/tmp/oil-spec-test/pwd-3\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
Error running ['-c', 'PWD=foo; pwd']: [Errno 2] No such file or directory
osh_.cc13 lie about PWD; pwd before any cd

[osh_.cc stdout] Expected '/tmp/oil-spec-test/pwd-3\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-3'] arg_spids:[3 5 7])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-3'] arg_spids:[3 5 7])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc14 remove pwd dir

[osh_.cc stdout] Expected '/tmp/oil-spec-test/pwd\nstatus=0\n/tmp/oil-spec-test/pwd\nstatus=0\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py15 pwd in symlinked dir on shell initialization

[osh_.py stdout] Expected 'symlink\ntarget\n', got ''
[osh_.py stderr] Expected u'', got "mkdir: cannot create directory \xe2\x80\x98/builtins-pwd-2\xe2\x80\x99: Permission denied\nmkdir: cannot create directory \xe2\x80\x98/builtins-pwd-2\xe2\x80\x99: Permission denied\nln: failed to create symbolic link '/builtins-pwd-2/symlink': No such file or directory\n cd $tmp/symlink\n ^~~~\n[ stdin ]:5: cd '/builtins-pwd-2/symlink': No such file or directory\nError running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory\nError running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory\n"
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
mkdir: cannot create directory ‘/builtins-pwd-2’: Permission denied
mkdir: cannot create directory ‘/builtins-pwd-2’: Permission denied
ln: failed to create symbolic link '/builtins-pwd-2/symlink': No such file or directory
  cd $tmp/symlink
     ^~~~
[ stdin ]:5: cd '/builtins-pwd-2/symlink': No such file or directory
Error running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory
Error running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory
osh_.cc15 pwd in symlinked dir on shell initialization

[osh_.cc stdout] Expected 'symlink\ntarget\n', got "(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2'] arg_spids:[4 6 8])\n(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2/target'] arg_spids:[10 12 14])\n(cmd_value.Argv\n argv: [ln -s -f '/builtins-pwd-2/target' '/builtins-pwd-2/symlink']\n arg_spids: [17 19 21 23 26]\n)\n"
[osh_.cc stderr] Expected u'', got "Unhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\nosh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2'] arg_spids:[4 6 8])
(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2/target'] arg_spids:[10 12 14])
(cmd_value.Argv
  argv: [ln -s -f '/builtins-pwd-2/target' '/builtins-pwd-2/symlink']
  arg_spids: [17 19 21 23 26]
)
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py16 Test the current directory after 'cd ..' involving symlinks

[osh_.py stdout] Expected 'a\nc\n', got 'a\nbuiltins-pwd-1\nbuiltins-pwd-2\nc\ncd-symlink\ncd-symtarget\ndir-one\nhome\nsymlinktest\n_tmp\numask-one\numask-two\n'

stdout:
a
builtins-pwd-1
builtins-pwd-2
c
cd-symlink
cd-symtarget
dir-one
home
symlinktest
_tmp
umask-one
umask-two
stderr:
mkdir: cannot create directory ‘/symlinktest’: Permission denied
  cd $dir
     ^~~~
[ stdin ]:3: cd '/symlinktest': No such file or directory
osh_.cc16 Test the current directory after 'cd ..' involving symlinks

[osh_.cc stdout] Expected 'a\nc\n', got "(cmd_value.Argv argv:[mkdir -p '/symlinktest'] arg_spids:[4 6 8])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/symlinktest'] arg_spids:[4 6 8])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py17 cd with no arguments

[osh_.py stdout] Expected 'OK\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 981, in _Dispatch
    status = self._Execute(left)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc17 cd with no arguments

[osh_.cc stdout] Expected 'OK\n', got "(cmd_value.Argv argv:[mkdir -p '/home'] arg_spids:[4 6 8])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/home'] arg_spids:[4 6 8])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc18 cd to nonexistent dir

[osh_.cc stdout] Expected 'status=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py19 cd away from dir that was deleted

[osh_.py stdout] Expected 'cd-nonexistent\nstatus=0\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
mkdir: cannot create directory ‘/cd-nonexistent’: Permission denied
  cd $dir
     ^~~~
[ stdin ]:3: cd '/cd-nonexistent': No such file or directory
rmdir: failed to remove '/cd-nonexistent': No such file or directory
[??? no location ???] $HOME isn't defined
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc19 cd away from dir that was deleted

[osh_.cc stdout] Expected 'cd-nonexistent\nstatus=0\n', got "(cmd_value.Argv argv:[mkdir -p '/cd-nonexistent'] arg_spids:[4 6 8])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/cd-nonexistent'] arg_spids:[4 6 8])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc20 cd permits double bare dash

[osh_.cc stdout] Expected '/\n', got '/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\n'

stdout:
/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh
stderr:
osh_.py21 cd to symlink with -L and -P

[osh_.py stdout] Expected 'OK\nOK\nOK\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
mkdir: cannot create directory ‘/cd-symtarget’: Permission denied
ln: failed to create symbolic link '/cd-symlink': Permission denied
  cd $lnk
     ^~~~
[ stdin ]:5: cd '/cd-symlink': No such file or directory
  cd -L $lnk
        ^~~~
[ stdin ]:7: cd '/cd-symlink': No such file or directory
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 354, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/andy/git/oilshell/oil/osh/builtin_misc.py", line 336, in Run
    posix.chdir(real_dest_dir)
TypeError: coercing to Unicode: need string or buffer, NoneType found
osh_.cc21 cd to symlink with -L and -P

[osh_.cc stdout] Expected 'OK\nOK\nOK\n', got "(cmd_value.Argv argv:[mkdir -p '/cd-symtarget'] arg_spids:[8 10 12])\n(cmd_value.Argv argv:[ln -s '/cd-symtarget' '/cd-symlink'] arg_spids:[14 16 18 20])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/cd-symtarget'] arg_spids:[8 10 12])
(cmd_value.Argv argv:[ln -s '/cd-symtarget' '/cd-symlink'] arg_spids:[14 16 18 20])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py22 cd to relative path with -L and -P

[osh_.py stdout] Expected 'OK\nOK\nOK\n', got 'failed\n'
[osh_.py status] Expected 0, got 1

stdout:
failed
stderr:
mkdir: cannot create directory ‘/cd-symtarget’: Permission denied
ln: failed to create symbolic link '/cd-symlink': Permission denied
  cd $lnk/subdir
     ^~~~
[ stdin ]:6: cd '/cd-symlink/subdir': No such file or directory
osh_.cc22 cd to relative path with -L and -P

[osh_.cc stdout] Expected 'OK\nOK\nOK\n', got "(cmd_value.Argv argv:[mkdir -p '/cd-symtarget/subdir'] arg_spids:[28 30 32])\n(cmd_value.Argv argv:[ln -s '/cd-symtarget/subdir' '/cd-symlink'] arg_spids:[34 36 38 40])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[mkdir -p '/cd-symtarget/subdir'] arg_spids:[28 30 32])
(cmd_value.Argv argv:[ln -s '/cd-symtarget/subdir' '/cd-symlink'] arg_spids:[34 36 38 40])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py23 Exit out of function

[osh_.py status] Expected 3, got 1

stdout:
stderr: 
osh_.cc23 Exit out of function

[osh_.cc status] Expected 3, got 1

stdout:
stderr: 
osh_.py26 time block

[osh_.py stdout] Expected 'user\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc26 time block

[osh_.cc stdout] Expected 'user\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/core_passwd.h:29: Tuple3<double, double, double> passwd::Time(): Assertion `0' failed.
osh_.py27 time pipeline

[osh_.py stdout] Expected '3\n', got ''

stdout:
stderr: 
real	0.000
user	0.000
sys	0.000
osh_.cc27 time pipeline

[osh_.cc stdout] Expected '3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/core_passwd.h:29: Tuple3<double, double, double> passwd::Time(): Assertion `0' failed.
osh_.cc28 shift

[osh_.cc stdout] Expected u'2 3 4\n4\n', got '\n\n'

stdout:

stderr:
set 6
osh_.py32 set umask in octal

[osh_.py stdout] Expected u'664\n644\n', got ''
[osh_.py stderr] Expected u'', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 31\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 31
osh_.cc32 set umask in octal

[osh_.cc stdout] Expected u'664\n644\n', got "(cmd_value.Argv argv:[rm -f '/umask-one' '/umask-two'] arg_spids:[0 2 4 7])\n"
[osh_.cc stderr] Expected u'', got "Unhandled SimpleCommand\nosh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[rm -f '/umask-one' '/umask-two'] arg_spids:[0 2 4 7])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh33 set umask symbolically

[osh stdout] Expected '664\n644\n', got '664\n664\n'
[osh stderr] Expected u'', got "osh warning: umask with symbolic input isn't implemented\n"

stdout:
664
664
stderr:
osh warning: umask with symbolic input isn't implemented
osh_.py33 set umask symbolically

[osh_.py stdout] Expected '664\n644\n', got ''
[osh_.py stderr] Expected u'', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 31\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 31
osh_.cc33 set umask symbolically

[osh_.cc stdout] Expected '664\n644\n', got ''
[osh_.cc stderr] Expected u'', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.