Results for nul-bytes.test.sh

statusdashbashmkshzshashoshosh_ALT
pass 1882722
ok 0003144
N-I 7000000
BUG 0003000
FAIL 0000022
total8888888
casedashbashmkshzshashoshosh_ALTdescription
0N-I pass pass BUG pass pass pass NUL bytes with echo -e
detailsdetails
1pass pass pass pass pass pass pass NUL bytes in printf format
2N-I pass pass ok pass ok ok NUL bytes in printf value (OSH and zsh agree)
detailsdetailsdetailsdetails
3N-I pass pass ok pass ok ok NUL bytes with echo $'\0' (OSH and zsh agree)
detailsdetailsdetailsdetails
4N-I pass pass BUG pass FAIL FAIL NUL bytes and IFS splitting
detailsdetailsdetailsdetails
5N-I pass pass BUG pass ok ok NUL bytes with test -n
detailsdetailsdetailsdetails
6N-I pass pass pass ok FAIL FAIL NUL bytes with test -f
detailsdetailsdetailsdetails
7N-I pass pass ok pass ok ok NUL bytes with ${#s} (OSH and zsh agree)
detailsdetailsdetailsdetails
30 passed, 12 OK, 7 not implemented, 3 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

dash0 NUL bytes with echo -e

stdout:
stderr: 
zsh0 NUL bytes with echo -e

stdout:

stderr:
dash2 NUL bytes in printf value (OSH and zsh agree)

stdout:
stderr: 
zsh2 NUL bytes in printf value (OSH and zsh agree)

stdout:


stderr:
osh2 NUL bytes in printf value (OSH and zsh agree)

stdout:


stderr:
osh_ALT2 NUL bytes in printf value (OSH and zsh agree)

stdout:


stderr:
dash3 NUL bytes with echo $'\0' (OSH and zsh agree)

stdout:
stderr: 
zsh3 NUL bytes with echo $'\0' (OSH and zsh agree)

stdout:

stderr:
osh3 NUL bytes with echo $'\0' (OSH and zsh agree)

stdout:

stderr:
osh_ALT3 NUL bytes with echo $'\0' (OSH and zsh agree)

stdout:

stderr:
dash4 NUL bytes and IFS splitting

stdout:
stderr: 
zsh4 NUL bytes and IFS splitting

stdout:
['', '']
['']
['a', 'b']
['a']
stderr:
osh4 NUL bytes and IFS splitting

[osh stdout] Expected "[]\n['']\n['ab']\n['ab']\n", got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 208, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 353, 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 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 892, in _Dispatch
    node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 208, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 353, 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 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 892, in _Dispatch
    node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 208, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 353, 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 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 892, in _Dispatch
    node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 208, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 353, 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 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 892, in _Dispatch
    node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
osh_ALT4 NUL bytes and IFS splitting

[osh_ALT stdout] Expected "[]\n['']\n['ab']\n['ab']\n", got ''
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 361, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 905, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.18.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 361, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 905, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.18.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 361, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 905, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.18.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 361, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 905, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 323, in RunSimpleCommand
    status = p.RunProcess(self.waiter, trace.External(cmd_val.argv))
  File "/home/andy/git/oilshell/oil/core/process.py", line 1128, in RunProcess
    self.StartProcess(why)
  File "/home/andy/git/oilshell/oil/core/process.py", line 1041, in StartProcess
    self.thunk.Run()
  File "/home/andy/git/oilshell/oil/core/process.py", line 770, in Run
    self.ext_prog.Exec(self.argv0_path, self.cmd_val, self.environ)
  File "/home/andy/git/oilshell/oil/core/process.py", line 657, in Exec
    self._Exec(argv0_path, cmd_val.argv, cmd_val.arg_locs[0], environ, True)
  File "/home/andy/git/oilshell/oil/core/process.py", line 688, in _Exec
    posix.execve(argv0_path, argv, environ)
TypeError: execve() arg 2 must contain only strings
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.18.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
dash5 NUL bytes with test -n

stdout:
stderr: 
zsh5 NUL bytes with test -n

stdout:
status=0
status=0
stderr:
osh5 NUL bytes with test -n

stdout:
status=1
status=0
stderr:
osh_ALT5 NUL bytes with test -n

stdout:
status=1
status=0
stderr:
dash6 NUL bytes with test -f

stdout:
stderr: 
ash6 NUL bytes with test -f

stdout:
status=1
status=0
status=1
status=1
stderr:
osh6 NUL bytes with test -f

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 208, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 353, 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 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 892, in _Dispatch
    node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 292, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 192, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/andy/git/oilshell/oil/osh/builtin_bracket.py", line 269, in Run
    b = bool_ev.EvalB(bool_node)
  File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 951, in EvalB
    return bool_stat.DoUnaryOp(op_id, s)
  File "/home/andy/git/oilshell/oil/osh/bool_stat.py", line 46, in DoUnaryOp
    st = posix.stat(s)
TypeError: stat() argument 1 must be encoded string without null bytes, not str
osh_ALT6 NUL bytes with test -f

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 183, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1008, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 361, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1858, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1680, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 905, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 592, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 292, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/executor.py", line 192, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/andy/git/oilshell/oil/osh/builtin_bracket.py", line 269, in Run
    b = bool_ev.EvalB(bool_node)
  File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 951, in EvalB
    return bool_stat.DoUnaryOp(op_id, s)
  File "/home/andy/git/oilshell/oil/osh/bool_stat.py", line 46, in DoUnaryOp
    st = posix.stat(s)
TypeError: stat() argument 1 must be encoded string without null bytes, not str
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.18.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
dash7 NUL bytes with ${#s} (OSH and zsh agree)

stdout:
stderr: 
zsh7 NUL bytes with ${#s} (OSH and zsh agree)

stdout:
empty=0
nul=1
stderr:
osh7 NUL bytes with ${#s} (OSH and zsh agree)

stdout:
empty=0
nul=1
stderr:
osh_ALT7 NUL bytes with ${#s} (OSH and zsh agree)

stdout:
empty=0
nul=1
stderr: