spec test index / oilshell.org
83 passed, 1 OK, 0 not implemented, 0 BUG, 48 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh_.py | 0 Env value doesn't persist [osh_.py stdout] Expected 'foo\n--\n', got 'None\n--\n' stdout: None --stderr: |
osh_.cc | 0 Env value doesn't persist [osh_.cc stdout] Expected 'foo\n--\n', got '(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[3 5])\n-foo-\n' stdout: (cmd_value.Argv argv:[printenv.py FOO] arg_spids:[3 5]) -foo-stderr: Unhandled SimpleCommand |
osh_.py | 1 Env value with equals [osh_.py stdout] Expected 'foo=foo\n', got 'None\n' stdout: Nonestderr: |
osh_.cc | 1 Env value with equals [osh_.cc stdout] Expected 'foo=foo\n', got '(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[4 6])\n' stdout: (cmd_value.Argv argv:[printenv.py FOO] arg_spids:[4 6])stderr: Unhandled SimpleCommand |
osh_.py | 2 Env binding can use preceding bindings, but not subsequent ones [osh_.py stdout] Expected 'foo\n[foo][]\nbaz\n', got 'None\nNone\nNone\n' stdout: None None Nonestderr: |
osh_.cc | 2 Env binding can use preceding bindings, but not subsequent ones [osh_.cc stdout] Expected 'foo\n[foo][]\nbaz\n', got '(cmd_value.Argv argv:[printenv.py FOO BAR BAZ] arg_spids:[17 19 21 23])\n' stdout: (cmd_value.Argv argv:[printenv.py FOO BAR BAZ] arg_spids:[17 19 21 23])stderr: Unhandled SimpleCommand |
osh_.py | 3 Env value with two quotes [osh_.py stdout] Expected 'fooadjacent\n', got 'None\n' stdout: Nonestderr: |
osh_.cc | 3 Env value with two quotes [osh_.cc stdout] Expected 'fooadjacent\n', got '(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[8 10])\n' stdout: (cmd_value.Argv argv:[printenv.py FOO] arg_spids:[8 10])stderr: Unhandled SimpleCommand |
osh_.py | 4 Env value with escaped < [osh_.py stdout] Expected 'foo<foo\n', got 'None\n' stdout: Nonestderr: |
osh_.cc | 4 Env value with escaped < [osh_.cc stdout] Expected 'foo<foo\n', got '(cmd_value.Argv argv:[printenv.py FOO] arg_spids:[5 7])\n' stdout: (cmd_value.Argv argv:[printenv.py FOO] arg_spids:[5 7])stderr: Unhandled SimpleCommand |
osh_.py | 7 Multiple temporary envs on the stack [osh_.py stdout] Expected 'f [] [A]\n--- g() ---\nf\n[]\n[A]\nNone\np\n--- f() ---\nf\nNone\nNone\nNone\nNone\n', got 'None\nNone\nNone\nNone\nNone\nNone\nNone\nNone\nNone\nNone\nf [] [A]\n--- g() ---\n--- f() ---\n' stdout: None None None None None None None None None None f [] [A] --- g() --- --- f() ---stderr: |
osh_.cc | 7 Multiple temporary envs on the stack [osh_.cc stdout] Expected 'f [] [A]\n--- g() ---\nf\n[]\n[A]\nNone\np\n--- f() ---\nf\nNone\nNone\nNone\nNone\n', got 'f [] [A]\n--- g() ---\n(cmd_value.Argv argv:[printenv.py F G1 G2 A P] arg_spids:[32 34 36 38 40 42])\n--- f() ---\n(cmd_value.Argv argv:[printenv.py F G1 G2 A P] arg_spids:[73 75 77 79 81 83])\n' stdout: f [] [A] --- g() --- (cmd_value.Argv argv:[printenv.py F G1 G2 A P] arg_spids:[32 34 36 38 40 42]) --- f() --- (cmd_value.Argv argv:[printenv.py F G1 G2 A P] arg_spids:[73 75 77 79 81 83])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 8 Escaped = in command name [osh_.cc stdout] Expected 'HI\n', got "(cmd_value.Argv argv:['foo=bar'] arg_spids:[0])\n" stdout: (cmd_value.Argv argv:['foo=bar'] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 10 Trying to run keyword 'for' [osh_.py status] Expected 127, got 1 stdout: stderr: Error running ['for']: [Errno 2] No such file or directory |
osh_.cc | 10 Trying to run keyword 'for' [osh_.cc status] Expected 127, got 0 stdout: (cmd_value.Argv argv:[for] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.py | 11 Empty env binding [osh_.py stdout] Expected '\n', got 'None\n' stdout: Nonestderr: |
osh_.cc | 11 Empty env binding [osh_.cc stdout] Expected '\n', got '(cmd_value.Argv argv:[printenv.py EMPTY] arg_spids:[2 4])\n' stdout: (cmd_value.Argv argv:[printenv.py EMPTY] arg_spids:[2 4])stderr: Unhandled SimpleCommand |
osh_.cc | 12 Assignment doesn't do word splitting [osh_.cc stdout] Expected "['one two']\n", got "(cmd_value.Argv argv:[argv.py 'one two'] arg_spids:[8 10])\n" stdout: (cmd_value.Argv argv:[argv.py 'one two'] arg_spids:[8 10])stderr: Unhandled SimpleCommand |
osh_.cc | 13 Assignment doesn't do glob expansion [osh_.cc stdout] Expected "['_tmp/*.Z']\n", got "(cmd_value.Argv argv:[touch '_tmp/z.Z' '_tmp/zz.Z'] arg_spids:[0 2 4])\n(cmd_value.Argv argv:[argv.py '_tmp/*.Z'] arg_spids:[11 13])\n" stdout: (cmd_value.Argv argv:[touch '_tmp/z.Z' '_tmp/zz.Z'] arg_spids:[0 2 4]) (cmd_value.Argv argv:[argv.py '_tmp/*.Z'] arg_spids:[11 13])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 14 Env binding in readonly/declare is NOT exported! (pitfall) [osh_.py stdout] Expected 'v=None\nv2=foo\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1888, in EvalWordSequence2 return self._EvalAssignBuiltin(builtin_id, val0.s, words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1739, in _EvalAssignBuiltin right = self.EvalRhsWord(rhs_word) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 14 Env binding in readonly/declare is NOT exported! (pitfall) [osh_.cc stdout] Expected 'v=None\nv2=foo\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 17 readonly x= gives empty string (regression) [osh_.cc stdout] Expected "['']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.py | 22 declare in an if statement [osh_.py stdout] Expected 'bar\neggs\n', got '\n\n' stdout: stderr: |
osh_.cc | 22 declare in an if statement [osh_.cc stdout] Expected 'bar\neggs\n', got '\n\n' stdout: stderr: |
osh_.cc | 24 Reveal existence of "temp frame" (All shells disagree here!!!) [osh_.cc stdout] Expected 'x=temp-binding\nx=mutated-temp\nx=local\nx=mutated-temp\nx=global\n', got 'x=temp-binding\nx=mutated-temp\nx=local\nx=local\nx=local\n' stdout: x=temp-binding x=mutated-temp x=local x=local x=localstderr: |
osh_.cc | 25 Test above without 'local' (which is not POSIX) [osh_.cc stdout] Expected 'x=temp-binding\nx=mutated-temp\nx=global\nx=global\n', got 'x=temp-binding\nx=mutated-temp\nx=mutated-temp\nx=mutated-temp\n' stdout: x=temp-binding x=mutated-temp x=mutated-temp x=mutated-tempstderr: |
osh_.cc | 26 Using ${x-default} after unsetting local shadowing a global [osh_.cc stdout] Expected 'x=global\nx=local\n- operator = global\n:- operator = global\n', got 'x=global\nx=local\n- operator = local\n:- operator = local\n' stdout: x=global x=local - operator = local :- operator = localstderr: |
osh_.cc | 27 Using ${x-default} after unsetting a temp binding shadowing a global [osh_.cc stdout] Expected 'x=temp-binding\nx=local\n- operator = temp-binding\n:- operator = temp-binding\n', got 'x=temp-binding\nx=local\n- operator = local\n:- operator = local\n' stdout: x=temp-binding x=local - operator = local :- operator = localstderr: |
osh_.cc | 28 static assignment doesn't split [osh_.cc stdout] Expected "['a b c', 'a b c', 'a b c']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 29 aliased assignment doesn't split [osh_.cc stdout] Expected "['a b c', 'a b c']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 30 assignment using dynamic keyword (splits in most shells, not in zsh/osh) [osh_.cc stdout] Expected "['a b c', 'a b c']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 31 assignment using dynamic var names doesn't split [osh_.cc stdout] Expected "['a b c', 'a b c']\n['a b c', 'a b c']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 32 assign and glob [osh_.cc stdout] Expected "['*']\n['*']\n", got "(cmd_value.Argv argv:[touch 'foo=a' 'foo=b'] arg_spids:[4 6 9])\n(cmd_value.Argv argv:[argv.py '*'] arg_spids:[15 17])\n(cmd_value.Argv argv:[argv.py '*'] arg_spids:[32 34])\n" stdout: (cmd_value.Argv argv:[touch 'foo=a' 'foo=b'] arg_spids:[4 6 9]) (cmd_value.Argv argv:[argv.py '*'] arg_spids:[15 17]) (cmd_value.Argv argv:[argv.py '*'] arg_spids:[32 34])stderr: [??? no location ???] $HOME isn't defined Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 33 declare and glob [osh_.cc stdout] Expected "['*']\n", got "(cmd_value.Argv argv:[touch 'foo=a' 'foo=b'] arg_spids:[4 6 9])\n(cmd_value.Argv argv:[argv.py '*'] arg_spids:[17 19])\n" stdout: (cmd_value.Argv argv:[touch 'foo=a' 'foo=b'] arg_spids:[4 6 9]) (cmd_value.Argv argv:[argv.py '*'] arg_spids:[17 19])stderr: [??? no location ???] $HOME isn't defined Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 35 readonly a=(1 2) no_value c=(3 4) makes 'no_value' readonly [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.py | 36 export a=1 no_value c=2 [osh_.py stdout] Expected 'foo\n', got 'None\n' stdout: Nonestderr: |
osh_.cc | 36 export a=1 no_value c=2 [osh_.cc stdout] Expected 'foo\n', got '(cmd_value.Argv argv:[printenv.py no_value] arg_spids:[13 15])\n' stdout: (cmd_value.Argv argv:[printenv.py no_value] arg_spids:[13 15])stderr: Unhandled SimpleCommand |
osh_.cc | 37 local a=loc $var c=loc [osh_.cc stdout] Expected "global\n['loc', '', 'loc']\n", got "global\n(cmd_value.Argv argv:[argv.py loc '' loc] arg_spids:[30 32 36 40])\n" stdout: global (cmd_value.Argv argv:[argv.py loc '' loc] arg_spids:[30 32 36 40])stderr: Unhandled SimpleCommand |
osh | 38 redirect after assignment builtin (what's going on with dash/bash/mksh here?) [osh stderr] Expected 'STDERR\n', got '' stdout: donestderr: |
osh_.py | 38 redirect after assignment builtin (what's going on with dash/bash/mksh here?) [osh_.py stdout] Expected 'done\n', got '' [osh_.py stderr] Expected 'STDERR\n', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch\n cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1888, in EvalWordSequence2\n return self._EvalAssignBuiltin(builtin_id, val0.s, words)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1739, in _EvalAssignBuiltin\n right = self.EvalRhsWord(rhs_word)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord\n return self.EvalWordToString(w)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString\n self._EvalWordPart(p, part_vals, quoted=False)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart\n sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub\n stdout = self.shell_ex.RunCommandSub(node)\nAttributeError: \'NoneType\' object has no attribute \'RunCommandSub\'\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1888, in EvalWordSequence2 return self._EvalAssignBuiltin(builtin_id, val0.s, words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1739, in _EvalAssignBuiltin right = self.EvalRhsWord(rhs_word) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 38 redirect after assignment builtin (what's going on with dash/bash/mksh here?) [osh_.cc stdout] Expected 'done\n', got '' [osh_.cc stderr] Expected 'STDERR\n', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh | 39 redirect after command sub (like case above but without assignment builtin) [osh stderr] Expected 'STDERR\n', got '' stdout: stdout=STDOUTstderr: |
osh_.py | 39 redirect after command sub (like case above but without assignment builtin) [osh_.py stdout] Expected 'stdout=STDOUT\n', got '' [osh_.py stderr] Expected 'STDERR\n', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch\n cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2\n self._EvalWordToParts(w, False, part_vals) # not double quoted\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts\n self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart\n sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub\n stdout = self.shell_ex.RunCommandSub(node)\nAttributeError: \'NoneType\' object has no attribute \'RunCommandSub\'\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 39 redirect after command sub (like case above but without assignment builtin) [osh_.cc stdout] Expected 'stdout=STDOUT\n', got 'stdout=\n' [osh_.cc stderr] Expected 'STDERR\n', got '' stdout: stdout=stderr: |
osh_.py | 40 redirect after bare assignment [osh_.py stdout] Expected 'done\n', got '' [osh_.py stderr] Expected u'', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch\n val = self.word_ev.EvalRhsWord(pair.rhs)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord\n return self.EvalWordToString(w)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString\n self._EvalWordPart(p, part_vals, quoted=False)\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart\n sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t\n File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub\n stdout = self.shell_ex.RunCommandSub(node)\nAttributeError: \'NoneType\' object has no attribute \'RunCommandSub\'\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh | 41 redirect after declare -p stdout: stderr: declare -- foo=bar |
osh_.py | 41 redirect after declare -p [osh_.py stderr] Expected 'declare -- foo=bar\n', got '' [osh_.py stdout] Expected u'', got 'declare -- foo=bar\n' stdout: declare -- foo=barstderr: |
osh_.cc | 41 redirect after declare -p [osh_.cc stderr] Expected 'declare -- foo=bar\n', got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |
osh_.cc | 43 declare -A dict does not remove existing arrays (OSH regression) [osh_.cc stdout] Expected 'dict:3\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:769: int len(const Dict<K, V> *) [K = Str *, V = Str *]: Assertion `0' failed. |