Results for builtins.test.sh

statusoshosh_.pyosh_.cc
pass 33117
FAIL 12327
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 FAIL FAIL setting $PWD doesn't affect the value of 'pwd' builtin
detailsdetails
11pass FAIL FAIL unset PWD; then pwd
detailsdetails
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 FAIL FAIL remove pwd dir
detailsdetails
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 pass pass Exit out of function
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 pass shift
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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 495, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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 71, in <module>\n sys.exit(main(sys.argv))\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main\n status = pure.Main(\'osh\', arg_r, environ, login_shell, loader, None)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1336, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 495, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1336, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 495, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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 "(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_.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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 495, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1336, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 495, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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 "(cmd_value.Argv argv:[mkdir -p '/dir-one/dir-two'] arg_spids:[4 6 8])\n\n\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/dir-one/dir-two'] arg_spids:[4 6 8])


stderr:
Unhandled SimpleCommand
  cd $dir
     ^~~~
[ stdin ]:3: cd '/dir-one/dir-two': No such file or directory
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 "(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)\npwd:\n(cmd_value.Argv argv:[basename] arg_spids:[33])\npwd -P:\n(cmd_value.Argv argv:[basename] arg_spids:[46])\n"

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]
)
pwd:
(cmd_value.Argv argv:[basename] arg_spids:[33])
pwd -P:
(cmd_value.Argv argv:[basename] arg_spids:[46])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
  cd $tmp/symlink
     ^~~~
[ stdin ]:4: cd '/builtins-pwd-1/symlink': No such file or directory
Unhandled SimpleCommand
Unhandled SimpleCommand
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_.py10 setting $PWD doesn't affect the value of 'pwd' builtin

[osh_.py 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])\nbefore foo\n/tmp/oil-spec-test/pwd\nafter foo\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])
before foo
/tmp/oil-spec-test/pwd
after foo
stderr:
Unhandled SimpleCommand
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_.py11 unset PWD; then pwd

[osh_.py 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])\nPWD=\n/tmp/oil-spec-test/pwd\nPWD=\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])
PWD=
/tmp/oil-spec-test/pwd
PWD=
stderr:
Unhandled SimpleCommand
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 "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-2'] arg_spids:[3 5 7])\n(cmd_value.Argv argv:[-c 'unset PWD; pwd'] arg_spids:[15 17])\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-2'] arg_spids:[3 5 7])
(cmd_value.Argv argv:[-c 'unset PWD; pwd'] arg_spids:[15 17])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
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 "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-3'] arg_spids:[3 5 7])\n(cmd_value.Argv argv:[-c 'PWD=foo; pwd'] arg_spids:[15 17])\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-3'] arg_spids:[3 5 7])
(cmd_value.Argv argv:[-c 'PWD=foo; pwd'] arg_spids:[15 17])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
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_.py14 remove pwd dir

[osh_.py 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/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\n(cmd_value.Argv argv:[rmdir '/tmp/oil-spec-test/pwd'] arg_spids:[15 17])\nstatus=0\n/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\nstatus=0\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])
/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh
(cmd_value.Argv argv:[rmdir '/tmp/oil-spec-test/pwd'] arg_spids:[15 17])
status=0
/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh
status=0
stderr:
Unhandled SimpleCommand
  cd $dir
     ^~~~
[ stdin ]:3: cd '/tmp/oil-spec-test/pwd': No such file or directory
Unhandled SimpleCommand
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 "(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(cmd_value.Argv argv:[-c 'basename $(pwd)'] arg_spids:[36 38])\n(cmd_value.Argv argv:[-c 'basename $(pwd)'] arg_spids:[50 52])\n"
[osh_.py stderr] Expected u'', got "Unhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\n cd $tmp/symlink\n ^~~~\n[ stdin ]:5: cd '/builtins-pwd-2/symlink': No such file or directory\nUnhandled SimpleCommand\nUnhandled SimpleCommand\n"

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]
)
(cmd_value.Argv argv:[-c 'basename $(pwd)'] arg_spids:[36 38])
(cmd_value.Argv argv:[-c 'basename $(pwd)'] arg_spids:[50 52])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
  cd $tmp/symlink
     ^~~~
[ stdin ]:5: cd '/builtins-pwd-2/symlink': No such file or directory
Unhandled SimpleCommand
Unhandled SimpleCommand
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 "(cmd_value.Argv argv:[mkdir -p '/symlinktest'] arg_spids:[4 6 8])\n(cmd_value.Argv argv:[mkdir -p 'a/b/c'] arg_spids:[14 16 18])\n(cmd_value.Argv argv:[mkdir -p 'a/b/d'] arg_spids:[20 22 24])\n(cmd_value.Argv argv:[ln -s -f 'a/b/c' c] arg_spids:[26 28 30 32 34])\n(cmd_value.Argv argv:[ls] arg_spids:[48])\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/symlinktest'] arg_spids:[4 6 8])
(cmd_value.Argv argv:[mkdir -p 'a/b/c'] arg_spids:[14 16 18])
(cmd_value.Argv argv:[mkdir -p 'a/b/d'] arg_spids:[20 22 24])
(cmd_value.Argv argv:[ln -s -f 'a/b/c' c] arg_spids:[26 28 30 32 34])
(cmd_value.Argv argv:[ls] arg_spids:[48])
stderr:
Unhandled SimpleCommand
  cd $dir
     ^~~~
[ stdin ]:3: cd '/symlinktest': No such file or directory
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
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 "(cmd_value.Argv argv:[mkdir -p '/home'] arg_spids:[4 6 8])\n"
[osh_.py status] Expected 0, got 2

stdout:
(cmd_value.Argv argv:[mkdir -p '/home'] arg_spids:[4 6 8])
stderr:
Unhandled SimpleCommand
  test $(pwd) = "$HOME" && echo OK
              ^
[ stdin ]:4: (test) Expected unary operator, got '=' (2 args)
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 "(cmd_value.Argv argv:[mkdir -p '/cd-nonexistent'] arg_spids:[4 6 8])\n(cmd_value.Argv argv:[rmdir '/cd-nonexistent'] arg_spids:[14 16])\n\nstatus=0\n"

stdout:
(cmd_value.Argv argv:[mkdir -p '/cd-nonexistent'] arg_spids:[4 6 8])
(cmd_value.Argv argv:[rmdir '/cd-nonexistent'] arg_spids:[14 16])

status=0
stderr:
Unhandled SimpleCommand
  cd $dir
     ^~~~
[ stdin ]:3: cd '/cd-nonexistent': No such file or directory
Unhandled SimpleCommand
[??? no location ???] $HOME isn't defined
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 ''
[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_.py21 cd to symlink with -L and -P

[osh_.py 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_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

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
  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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 513, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 479, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/andy/git/oilshell/oil/osh/builtin_misc.py", line 364, 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 "(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])\nfailed\n"
[osh_.py status] Expected 0, got 1

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])
failed
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
  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_.py26 time block

[osh_.py stdout] Expected 'user\n', got '(cmd_value.Argv argv:[sleep 0.01] arg_spids:[17 19])\n(cmd_value.Argv argv:[sleep 0.02] arg_spids:[22 24])\n'

stdout:
(cmd_value.Argv argv:[sleep 0.01] arg_spids:[17 19])
(cmd_value.Argv argv:[sleep 0.02] arg_spids:[22 24])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
real	0.001
user	0.001
sys	0.000
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_pyos.h:33: Tuple3<double, double, double> pyos::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_pyos.h:33: Tuple3<double, double, double> pyos::Time(): Assertion `0' failed.
osh_.py32 set umask in octal

[osh_.py 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_.py stderr] Expected u'', got 'Unhandled SimpleCommand\nTraceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module>\n sys.exit(main(sys.argv))\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main\n status = pure.Main(\'osh\', arg_r, environ, login_shell, loader, None)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 513, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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:
(cmd_value.Argv argv:[rm -f '/umask-one' '/umask-two'] arg_spids:[0 2 4 7])
stderr:
Unhandled SimpleCommand
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 513, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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 71, in <module>\n sys.exit(main(sys.argv))\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main\n status = pure.Main(\'osh\', arg_r, environ, login_shell, loader, None)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 513, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, 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 1464, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 513, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 476, 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.