60 passed, 9 OK, 14 not implemented, 10 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| dash | 0 NUL bytes with echo -e stdout: stderr: |
| zsh | 0 NUL bytes with echo -e stdout: \0 \n 00 0astderr: |
| dash | 1 printf - literal NUL in format string stdout: stderr: |
| zsh | 1 printf - literal NUL in format string stdout: x \0 z 78 00 7a --- x \0 z 78 00 7a --- \0 z 00 7astderr: |
| ash | 1 printf - literal NUL in format string stdout: stderr: |
| dash | 3 printf - NUL byte in value (OSH and zsh agree) stdout: stderr: |
| zsh | 3 printf - NUL byte in value (OSH and zsh agree) stdout: \0 \n 00 0a \0 \n 00 0astderr: |
| osh | 3 printf - NUL byte in value (OSH and zsh agree) stdout: \0 \n 00 0a \0 \n 00 0astderr: |
| dash | 4 NUL bytes with echo $'\0' (OSH and zsh agree) stdout: stderr: |
| zsh | 4 NUL bytes with echo $'\0' (OSH and zsh agree) stdout: \0 \n 00 0astderr: |
| osh | 4 NUL bytes with echo $'\0' (OSH and zsh agree) stdout: \0 \n 00 0astderr: |
| dash | 5 NUL bytes and IFS splitting stdout: stderr: |
| zsh | 5 NUL bytes and IFS splitting stdout: ['', ''] [''] ['a', 'b'] ['a']stderr: |
| dash | 6 NUL bytes with test -n stdout: stderr: |
| zsh | 6 NUL bytes with test -n stdout: status=0 status=0stderr: |
| osh | 6 NUL bytes with test -n stdout: status=1 status=0stderr: |
| dash | 7 NUL bytes with test -f stdout: stderr: |
| ash | 7 NUL bytes with test -f stdout: status=1 status=0 status=1 status=1stderr: |
| osh | 7 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/uke/oil/bin/oils_for_unix.py", line 263, in <module>
sys.exit(main(sys.argv))
File "/home/uke/oil/bin/oils_for_unix.py", line 232, in main
return AppBundleMain(argv)
File "/home/uke/oil/bin/oils_for_unix.py", line 198, in AppBundleMain
bash_compat=(applet == 'bash'))
File "/home/uke/oil/core/shell.py", line 1296, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/uke/oil/core/main_loop.py", line 336, in Batch
was_parsed, status = Batch2(cmd_ev, c_parser, errfmt, cmd_flags=cmd_flags)
File "/home/uke/oil/core/main_loop.py", line 401, in Batch2
is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags)
File "/home/uke/oil/osh/cmd_eval.py", line 2365, in ExecuteAndCatch
status = self._Execute(node)
File "/home/uke/oil/osh/cmd_eval.py", line 2164, in _Execute
status = self._Dispatch(node, cmd_st)
File "/home/uke/oil/osh/cmd_eval.py", line 1891, in _Dispatch
status = self._DoSimple(node, cmd_st)
File "/home/uke/oil/osh/cmd_eval.py", line 1153, in _DoSimple
status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags)
File "/home/uke/oil/osh/cmd_eval.py", line 766, in _RunSimpleCommand
run_flags)
File "/home/uke/oil/core/vm.py", line 235, in RunSimpleCommand
run_flags)
File "/home/uke/oil/core/executor.py", line 577, in _RunSimpleCommand
return self.RunBuiltin(builtin_id, cmd_val)
File "/home/uke/oil/core/vm.py", line 266, in RunBuiltin
return self._RunBuiltinProc(builtin_proc, cmd_val)
File "/home/uke/oil/core/vm.py", line 276, in _RunBuiltinProc
status = builtin_proc.Run(cmd_val)
File "/home/uke/oil/builtin/bracket_osh.py", line 277, in Run
b = bool_ev.EvalB(bool_node)
File "/home/uke/oil/osh/sh_expr_eval.py", line 1184, in EvalB
return bool_stat.DoUnaryOp(op_id, s)
File "/home/uke/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
|
| dash | 8 NUL bytes with ${#s} (OSH and zsh agree) stdout: stderr: |
| zsh | 8 NUL bytes with ${#s} (OSH and zsh agree) stdout: empty=0 nul=1stderr: |
| osh | 8 NUL bytes with ${#s} (OSH and zsh agree) stdout: empty=0 nul=1stderr: |
| zsh | 9 Compare \x00 byte versus \x01 byte - command sub stdout: len=3 2e 01 2e len=3 2e 00 2e len=1 00stderr: |
| zsh | 10 Compare \x00 byte versus \x01 byte - read builtin stdout: len=3 2e 01 2e len=3 2e 00 2e len=1 00stderr: |
| dash | 11 Compare \x00 byte versus \x01 byte - read -n stdout: stderr: |
| mksh | 11 Compare \x00 byte versus \x01 byte - read -n stdout: len=3 2e 01 2e len=1 2e len=0stderr: |
| zsh | 11 Compare \x00 byte versus \x01 byte - read -n stdout: len=0 len=1 2e len=0stderr: |
| dash | 12 Compare \x00 byte versus \x01 byte - mapfile builtin stdout: stderr: |
| mksh | 12 Compare \x00 byte versus \x01 byte - mapfile builtin stdout: stderr: |
| zsh | 12 Compare \x00 byte versus \x01 byte - mapfile builtin stdout: stderr: |
| ash | 12 Compare \x00 byte versus \x01 byte - mapfile builtin stdout: stderr: |
| osh | 12 Compare \x00 byte versus \x01 byte - mapfile builtin [osh stdout] Expected 'len=2\n 2e\n 2e\n' Got 'len=2\n 2e 00 2e\n 2e 00 2e\n' stdout: len=2 2e 00 2e 2e 00 2estderr: |
| zsh | 13 Strip ops # ## % %% with NUL bytes stdout: len=3 00 2e 00 --- len=2 2e 00 len=2 2e 00 len=2 00 2e len=2 00 2estderr: |
| zsh | 14 Issue 2269 Reduction stdout: len=2 00 78 len=1 78 --- len=2 01 78 len=1 78stderr: |
| zsh | 15 Issue 2269 - Do NUL bytes match ? in ${a#?} stdout: escaped that'"'"'s it! that's it! --- writes binary datastderr: len=9 len=8 len=7 len=6 len=5 len=4 len=3 len=2 len=1 len=0 |
| osh | 15 Issue 2269 - Do NUL bytes match ? in ${a#?} [osh stdout] Expected 'escaped that\'"\'"\'s it!\nthat\'s it!\n---\nescaped ::\n' Got '' [osh status] Expected 0 Got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last):
File "/home/uke/oil/bin/oils_for_unix.py", line 263, in <module>
sys.exit(main(sys.argv))
File "/home/uke/oil/bin/oils_for_unix.py", line 232, in main
return AppBundleMain(argv)
File "/home/uke/oil/bin/oils_for_unix.py", line 198, in AppBundleMain
bash_compat=(applet == 'bash'))
File "/home/uke/oil/core/shell.py", line 1296, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/uke/oil/core/main_loop.py", line 336, in Batch
was_parsed, status = Batch2(cmd_ev, c_parser, errfmt, cmd_flags=cmd_flags)
File "/home/uke/oil/core/main_loop.py", line 375, in Batch2
node = c_parser.ParseLogicalLine() # can raise ParseError
File "/home/uke/oil/osh/cmd_parse.py", line 2839, in ParseLogicalLine
node = self._ParseCommandLine()
File "/home/uke/oil/osh/cmd_parse.py", line 2695, in _ParseCommandLine
child = self.ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2619, in ParseAndOr
return self._ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2630, in _ParseAndOr
child = self.ParsePipeline()
File "/home/uke/oil/osh/cmd_parse.py", line 2578, in ParsePipeline
child = self.ParseCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2521, in ParseCommand
return self.ParseFunctionDef() # f() { echo; } # function
File "/home/uke/oil/osh/cmd_parse.py", line 2172, in ParseFunctionDef
func.body = self.ParseCompoundCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2073, in ParseCompoundCommand
n1 = self.ParseBraceGroup()
File "/home/uke/oil/osh/cmd_parse.py", line 1365, in ParseBraceGroup
c_list = self._ParseCommandList()
File "/home/uke/oil/osh/cmd_parse.py", line 2823, in _ParseCommandList
return self._ParseCommandTerm()
File "/home/uke/oil/osh/cmd_parse.py", line 2760, in _ParseCommandTerm
child = self.ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2619, in ParseAndOr
return self._ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2630, in _ParseAndOr
child = self.ParsePipeline()
File "/home/uke/oil/osh/cmd_parse.py", line 2578, in ParsePipeline
child = self.ParseCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2496, in ParseCommand
return self.ParseCompoundCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2085, in ParseCompoundCommand
n3 = self.ParseWhileUntil(keyword)
File "/home/uke/oil/osh/cmd_parse.py", line 1667, in ParseWhileUntil
body_node = self.ParseDoGroup()
File "/home/uke/oil/osh/cmd_parse.py", line 1385, in ParseDoGroup
c_list = self._ParseCommandList() # could be anything
File "/home/uke/oil/osh/cmd_parse.py", line 2823, in _ParseCommandList
return self._ParseCommandTerm()
File "/home/uke/oil/osh/cmd_parse.py", line 2760, in _ParseCommandTerm
child = self.ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2619, in ParseAndOr
return self._ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2630, in _ParseAndOr
child = self.ParsePipeline()
File "/home/uke/oil/osh/cmd_parse.py", line 2578, in ParsePipeline
child = self.ParseCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2496, in ParseCommand
return self.ParseCompoundCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2093, in ParseCompoundCommand
n5 = self.ParseCase()
File "/home/uke/oil/osh/cmd_parse.py", line 1885, in ParseCase
return self.ParseOldCase(case_kw)
File "/home/uke/oil/osh/cmd_parse.py", line 1861, in ParseOldCase
arm = self.ParseCaseArm()
File "/home/uke/oil/osh/cmd_parse.py", line 1708, in ParseCaseArm
c_list = self._ParseCommandTerm()
File "/home/uke/oil/osh/cmd_parse.py", line 2760, in _ParseCommandTerm
child = self.ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2619, in ParseAndOr
return self._ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2630, in _ParseAndOr
child = self.ParsePipeline()
File "/home/uke/oil/osh/cmd_parse.py", line 2578, in ParsePipeline
child = self.ParseCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2554, in ParseCommand
return self.ParseSimpleCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 1222, in ParseSimpleCommand
redirects, words, typed_args, block = self._ScanSimpleCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 904, in _ScanSimpleCommand
self._GetWord()
File "/home/uke/oil/osh/cmd_parse.py", line 670, in _GetWord
w = self.w_parser.ReadWord(self.next_lex_mode)
File "/home/uke/oil/osh/word_parse.py", line 2329, in ReadWord
w = self._ReadWord(word_mode)
File "/home/uke/oil/osh/word_parse.py", line 2246, in _ReadWord
return self._ReadCompoundOrRedir(lex_mode)
File "/home/uke/oil/osh/word_parse.py", line 1894, in _ReadCompoundOrRedir
return self._ReadCompoundOrRedir3(lex_mode, Id.Undefined_Tok, True)
File "/home/uke/oil/osh/word_parse.py", line 1999, in _ReadCompoundOrRedir3
part = self._ReadUnquotedLeftParts(is_triple_quoted)
File "/home/uke/oil/osh/word_parse.py", line 910, in _ReadUnquotedLeftParts
dq_part = self._ReadDoubleQuoted(self.cur_token)
File "/home/uke/oil/osh/word_parse.py", line 1191, in _ReadDoubleQuoted
self._ReadLikeDQ(left_token, False, parts)
File "/home/uke/oil/osh/word_parse.py", line 1102, in _ReadLikeDQ
part = word_part.EscapedLiteral(tok, "\"")
UnboundLocalError: local variable 'tok' referenced before assignment
|