Results for builtins.test.sh

statusoshosh_.pyosh_.cc
pass 331512
FAIL 11922
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 pass cd and $PWD
6pass FAIL FAIL $OLDPWD
detailsdetails
7pass pass pass pwd
8pass FAIL FAIL pwd after cd ..
detailsdetails
9pass FAIL FAIL pwd with symlink and -P
detailsdetails
10pass pass pass setting $PWD doesn't affect the value of 'pwd' builtin
11pass pass pass unset PWD; then pwd
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 pass remove pwd dir
15pass FAIL FAIL pwd in symlinked dir on shell initialization
detailsdetails
16pass FAIL FAIL Test the current directory after 'cd ..' involving symlinks
detailsdetails
17pass pass FAIL cd with no arguments
details
18pass pass FAIL cd to nonexistent dir
details
19pass FAIL FAIL cd away from dir that was deleted
detailsdetails
20pass pass pass cd permits double bare dash
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 pass FAIL time block
details
27pass FAIL FAIL time pipeline
detailsdetails
28pass pass pass shift
29pass pass pass Shifting too far
30pass pass pass Invalid shift argument
31pass FAIL FAIL get umask
detailsdetails
32pass FAIL FAIL set umask in octal
detailsdetails
33FAIL FAIL FAIL set umask symbolically
detailsdetailsdetails
60 passed, 0 OK, 0 not implemented, 0 BUG, 42 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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand
    status = self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 121, 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:674: 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 74, in <module>\n sys.exit(main(sys.argv))\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main\n None)\n File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute\n status, check_errexit = self._Dispatch(node, pipeline_st)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand\n status = self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/core/executor.py", line 121, 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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand
    status = self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 121, 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: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): 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 127

stdout:
stderr: 
  $SH $REPO_ROOT/spec/builtins-exec-here-doc-helper.sh
      ^~~~~~~~~~
[ stdin ]:1: '/spec/builtins-exec-here-doc-helper.sh' not found
osh_.cc2 exec builtin with here doc

[osh_.cc stdout] Expected 'x=one\ny=two\nDONE\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str *): Assertion `0' failed.
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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand
    status = self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 121, 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:674: 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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand
    status = self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 121, 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: cpp/posix.h:143: void posix::dup2(int, int): 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:
  cd $TMP
  ^~
[ stdin ]:2: $HOME isn't defined
  env | grep OLDPWD  # It's EXPORTED too!
  ^~~
[ stdin ]:4: 'env' not found
osh_.cc6 $OLDPWD

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

stdout:
stderr: 
  cd $TMP
  ^~
[ stdin ]:2: $HOME isn't defined
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py8 pwd after cd ..

[osh_.py stdout] Expected 'dir-two\ndir-one\n', got '\n\n'

stdout:

stderr:
mkdir: cannot create directory '/dir-one': Permission denied
  cd $dir
     ^~~~
[ stdin ]:3: cd '/dir-one/dir-two': No such file or directory
  echo $(basename $(pwd))
         ^~~~~~~~
[ stdin ]:4: 'basename' not found
  echo $(basename $(pwd))
         ^~~~~~~~
[ stdin ]:6: 'basename' not found
osh_.cc8 pwd after cd ..

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

stdout:
stderr: 
mkdir: cannot create directory '/dir-one': Permission denied
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.
osh_.py9 pwd with symlink and -P

[osh_.py stdout] Expected 'pwd:\nsymlink\npwd -P:\ntarget\n', got 'pwd:\npwd -P:\n'
[osh_.py status] Expected 0, got 127

stdout:
pwd:
pwd -P:
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
  basename $(pwd)
  ^~~~~~~~
[ stdin ]:6: 'basename' not found
  basename $(pwd -P)
  ^~~~~~~~
[ stdin ]:8: 'basename' not found
osh_.cc9 pwd with symlink and -P

[osh_.cc stdout] Expected 'pwd:\nsymlink\npwd -P:\ntarget\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
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
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): 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 127

stdout:
stderr: 
  $SH -c 'unset PWD; pwd'
      ^~
[ stdin ]:4: '-c' not found
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 ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  $SH -c 'unset PWD; pwd'
      ^~
[ stdin ]:4: '-c' not found
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 127

stdout:
stderr: 
  $SH -c 'PWD=foo; pwd'
      ^~
[ stdin ]:4: '-c' not found
osh_.cc13 lie about PWD; pwd before any cd

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

stdout:
stderr: 
  $SH -c 'PWD=foo; pwd'
      ^~
[ stdin ]:4: '-c' not found
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 '/builtins-pwd-2': Permission denied\nmkdir: cannot create directory '/builtins-pwd-2': 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\n $SH -c 'basename $(pwd)'\n ^~\n[ stdin ]:6: '-c' not found\n $SH -c 'basename $(pwd)'\n ^~\n[ stdin ]:8: '-c' not found\n"
[osh_.py status] Expected 0, got 127

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
  $SH -c 'basename $(pwd)'
      ^~
[ stdin ]:6: '-c' not found
  $SH -c 'basename $(pwd)'
      ^~
[ stdin ]:8: '-c' not found
osh_.cc15 pwd in symlinked dir on shell initialization

[osh_.cc stdout] Expected 'symlink\ntarget\n', got ''
[osh_.cc stderr] Expected u'', got "mkdir: cannot create directory '/builtins-pwd-2': Permission denied\nmkdir: cannot create directory '/builtins-pwd-2': Permission denied\nln: failed to create symbolic link '/builtins-pwd-2/symlink': No such file or directory\nosh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

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
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.
osh_.py16 Test the current directory after 'cd ..' involving symlinks

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

stdout:
_tmp
a
builtins-pwd-1
builtins-pwd-2
c
cd-symlink
cd-symtarget
dir-one
home
symlinktest
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 ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
mkdir: cannot create directory '/symlinktest': Permission denied
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.
osh_.cc17 cd with no arguments

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): 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/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.
osh_.py19 cd away from dir that was deleted

[osh_.py stdout] Expected 'cd-nonexistent\nstatus=0\n', got '\nstatus=0\n'

stdout:
status=0
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
  cd $TMP
  ^~
[ stdin ]:5: $HOME isn't defined
  echo $(basename $OLDPWD)
         ^~~~~~~~
[ stdin ]:6: 'basename' not found
osh_.cc19 cd away from dir that was deleted

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

stdout:
stderr: 
mkdir: cannot create directory '/cd-nonexistent': Permission denied
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.
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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 229, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 126, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/andy/git/oilshell/oil/osh/builtin_misc.py", line 507, in Run
    err_num = pyos.Chdir(real_dest_dir)
  File "/home/andy/git/oilshell/oil/core/pyos.py", line 27, in Chdir
    posix.chdir(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 ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
mkdir: cannot create directory '/cd-symtarget': Permission denied
ln: failed to create symbolic link '/cd-symlink': Permission denied
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): 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 ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
mkdir: cannot create directory '/cd-symtarget': Permission denied
ln: failed to create symbolic link '/cd-symlink': Permission denied
osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed.
osh_.cc26 time block

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py27 time pipeline

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

stdout:
stderr: 
  time echo hi | wc -c
                 ^~
[ stdin ]:1: 'wc' not found
real	0.007
user	0.005
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:30: Tuple3<double, double, double> pyos::Time(): Assertion `0' failed.
osh_.py31 get umask

[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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 667, in _Dispatch
    self.shell_ex.RunPipeline(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 324, in RunPipeline
    status_out.codes = pi.Run(self.waiter, self.fd_state)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1080, in Run
    self.Start(waiter)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1017, in Start
    pid = proc.Start(trace.PipelinePart())
  File "/home/andy/git/oilshell/oil/core/process.py", line 880, in Start
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 704, in Run
    self.cmd_ev.ExecuteAndCatch(self.node, cmd_flags=cmd_eval.Optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 229, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 121, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 32
osh_.cc31 get umask

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
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 74, in <module>\n sys.exit(main(sys.argv))\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main\n None)\n File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute\n status, check_errexit = self._Dispatch(node, pipeline_st)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/core/executor.py", line 229, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/core/executor.py", line 121, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 32\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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 229, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 121, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 32
osh_.cc32 set umask in octal

[osh_.cc stdout] Expected u'664\n644\n', got ''
[osh_.cc stderr] Expected u'', got "osh_eval.dbg: mycpp/mylib.h:674: 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:674: 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 74, in <module>\n sys.exit(main(sys.argv))\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main\n None)\n File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute\n status, check_errexit = self._Dispatch(node, pipeline_st)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/core/executor.py", line 229, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/core/executor.py", line 121, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 32\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 74, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 42, in main
    None)
  File "/home/andy/git/oilshell/oil/core/shell_native.py", line 474, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 229, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 121, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 32
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:674: 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:674: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.