spec test index / oilshell.org
148 passed, 2 OK, 0 not implemented, 0 BUG, 48 failed, 0 timeouts, 0 cases skipped
osh_.cc | 1 "${a[@]}" and "${a[*]}" [osh_.cc stdout] Expected "['1', '2 3', '1 2 3']\n", got "(cmd_value.Argv argv:[argv.py 1 '2 3' '1 2 3'] arg_spids:[9 11 11 20])\n" stdout: (cmd_value.Argv argv:[argv.py 1 '2 3' '1 2 3'] arg_spids:[9 11 11 20])stderr: Unhandled SimpleCommand |
osh_.cc | 2 ${a[@]} and ${a[*]} [osh_.cc stdout] Expected "['1', '2', '3', '1', '2', '3']\n", got '(cmd_value.Argv argv:[argv.py 1 2 3 1 2 3] arg_spids:[9 11 11 11 18 18 18])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 3 1 2 3] arg_spids:[9 11 11 11 18 18 18])stderr: Unhandled SimpleCommand |
osh_.cc | 3 4 ways to interpolate empty array [osh_.cc stdout] Expected "['1', '2', '3', '', '4', '5']\n", got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |
osh_.cc | 4 empty array [osh_.cc stdout] Expected '[]\n', got '(cmd_value.Argv argv:[argv.py] arg_spids:[4])\n' stdout: (cmd_value.Argv argv:[argv.py] arg_spids:[4])stderr: Unhandled SimpleCommand |
osh_.cc | 5 Empty array with :- [osh_.cc stdout] Expected "['not', 'one', 'not one']\n", got "(cmd_value.Argv argv:[argv.py not one 'not one'] arg_spids:[4 6 6 15])\n" stdout: (cmd_value.Argv argv:[argv.py not one 'not one'] arg_spids:[4 6 6 15])stderr: Unhandled SimpleCommand |
osh_.cc | 6 nounset with empty array (design bug, makes it hard to use arrays) [osh_.cc stdout] Expected '[]\nstatus=0\n', got '(cmd_value.Argv argv:[argv.py] arg_spids:[10])\nstatus=0\n' stdout: (cmd_value.Argv argv:[argv.py] arg_spids:[10]) status=0stderr: Unhandled SimpleCommand |
osh_.cc | 7 local array [osh_.cc stdout] Expected "['1']\n", got '(cmd_value.Argv argv:[argv.py 1] arg_spids:[19 21])\n' stdout: (cmd_value.Argv argv:[argv.py 1] arg_spids:[19 21])stderr: Unhandled SimpleCommand |
osh_.py | 8 Command with with word splitting in array [osh_.py stdout] Expected "['1 2', '3', '4']\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 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1585, in EvalRhsWord strs = self.EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1922, in EvalWordSequence UP_cmd_val = self.EvalWordSequence2(words) 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 | 8 Command with with word splitting in array [osh_.cc stdout] Expected "['1 2', '3', '4']\n", got "(cmd_value.Argv argv:[argv.py '1 2'] arg_spids:[15 17])\n" stdout: (cmd_value.Argv argv:[argv.py '1 2'] arg_spids:[15 17])stderr: Unhandled SimpleCommand |
osh_.cc | 10 array over multiple lines [osh_.cc stdout] Expected "['1', '2 3']\n", got "(cmd_value.Argv argv:[argv.py 1 '2 3'] arg_spids:[11 13 13])\n" stdout: (cmd_value.Argv argv:[argv.py 1 '2 3'] arg_spids:[11 13 13])stderr: Unhandled SimpleCommand |
osh_.cc | 12 array with empty string [osh_.cc stdout] Expected "['']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[6 8])\n" stdout: (cmd_value.Argv argv:[argv.py ''] arg_spids:[6 8])stderr: Unhandled SimpleCommand |
osh_.cc | 13 Retrieve index [osh_.cc stdout] Expected "['2 3']\n", got "(cmd_value.Argv argv:[argv.py '2 3'] arg_spids:[9 11])\n" stdout: (cmd_value.Argv argv:[argv.py '2 3'] arg_spids:[9 11])stderr: Unhandled SimpleCommand |
osh_.cc | 14 Retrieve out of bounds index [osh_.cc stdout] Expected "['']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[9 11])\n" stdout: (cmd_value.Argv argv:[argv.py ''] arg_spids:[9 11])stderr: Unhandled SimpleCommand |
osh_.cc | 15 Negative index [osh_.cc stdout] Expected "['2 3', '1', '']\n", got "(cmd_value.Argv argv:[argv.py '2 3' 1 ''] arg_spids:[9 11 21 31])\n" stdout: (cmd_value.Argv argv:[argv.py '2 3' 1 ''] arg_spids:[9 11 21 31])stderr: Unhandled SimpleCommand |
osh_.cc | 16 Negative index and sparse array [osh_.cc stdout] Expected '0 2 3\n-1 3\n-2 2\n-3\n-4 0\n-5\n0 2 30\n0 2 72\n', got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |
osh_.cc | 19 Retrieve index that is a variable [osh_.cc stdout] Expected "['2 3']\n", got "(cmd_value.Argv argv:[argv.py '2 3'] arg_spids:[12 14])\n" stdout: (cmd_value.Argv argv:[argv.py '2 3'] arg_spids:[12 14])stderr: Unhandled SimpleCommand |
osh_.cc | 20 Retrieve index that is a variable without $ [osh_.cc stdout] Expected "['2 3']\n", got "(cmd_value.Argv argv:[argv.py '2 3'] arg_spids:[12 14])\n" stdout: (cmd_value.Argv argv:[argv.py '2 3'] arg_spids:[12 14])stderr: Unhandled SimpleCommand |
osh_.py | 21 Retrieve index that is a command sub [osh_.py stdout] Expected "['2 3']\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 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 1326, in _EvalWordPart self._EvalDoubleQuoted(part.parts, part_vals) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 821, in _EvalDoubleQuoted self._EvalWordPart(p, part_vals, quoted=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1348, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 976, in _EvalBracedVarSub index = self.arith_ev.EvalToInt(anode) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 367, in EvalToInt val = self.Eval(node) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 408, in Eval return self.word_ev.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 | 21 Retrieve index that is a command sub [osh_.cc stdout] Expected "['2 3']\n", got '(cmd_value.Argv argv:[argv.py 1] arg_spids:[9 11])\n' stdout: (cmd_value.Argv argv:[argv.py 1] arg_spids:[9 11])stderr: Unhandled SimpleCommand |
osh_.cc | 22 Retrieve array indices with ${!a} [osh_.cc stdout] Expected "['0', '1']\n", got '(cmd_value.Argv argv:[argv.py 0 1] arg_spids:[9 11 11])\n' stdout: (cmd_value.Argv argv:[argv.py 0 1] arg_spids:[9 11 11])stderr: Unhandled SimpleCommand |
osh_.cc | 23 Retrieve sparse array indices with ${!a} [osh_.cc stdout] Expected "['99']\n", got '(cmd_value.Argv argv:[argv.py 99] arg_spids:[16 18])\n' stdout: (cmd_value.Argv argv:[argv.py 99] arg_spids:[16 18])stderr: Unhandled SimpleCommand |
osh_.cc | 24 ${!a[1]} is named ref in bash [osh_.cc stdout] Expected "['bar']\n", got '(cmd_value.Argv argv:[argv.py bar] arg_spids:[16 18])\n' stdout: (cmd_value.Argv argv:[argv.py bar] arg_spids:[16 18])stderr: Unhandled SimpleCommand |
osh_.cc | 26 All elements unquoted [osh_.cc stdout] Expected "['1', '2', '3']\n", got '(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])stderr: Unhandled SimpleCommand |
osh_.cc | 27 All elements quoted [osh_.cc stdout] Expected "['1', '2 3']\n", got "(cmd_value.Argv argv:[argv.py 1 '2 3'] arg_spids:[9 11 11])\n" stdout: (cmd_value.Argv argv:[argv.py 1 '2 3'] arg_spids:[9 11 11])stderr: Unhandled SimpleCommand |
osh_.cc | 28 $* [osh_.cc stdout] Expected "['1', '2', '3']\n", got '(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])stderr: Unhandled SimpleCommand |
osh_.cc | 29 "$*" [osh_.cc stdout] Expected "['1 2 3']\n", got "(cmd_value.Argv argv:[argv.py '1 2 3'] arg_spids:[9 11])\n" stdout: (cmd_value.Argv argv:[argv.py '1 2 3'] arg_spids:[9 11])stderr: Unhandled SimpleCommand |
osh_.cc | 30 Interpolate array into array [osh_.cc stdout] Expected "['0', '1', '2 3', '4 5']\n", got "(cmd_value.Argv argv:[argv.py 0 1 '2 3' '4 5'] arg_spids:[27 29 29 29 29])\n" stdout: (cmd_value.Argv argv:[argv.py 0 1 '2 3' '4 5'] arg_spids:[27 29 29 29 29])stderr: Unhandled SimpleCommand |
osh_.cc | 33 Set element [osh_.cc stdout] Expected "['9', '2 3']\n", got "(cmd_value.Argv argv:[argv.py 9 '2 3'] arg_spids:[16 18 18])\n" stdout: (cmd_value.Argv argv:[argv.py 9 '2 3'] arg_spids:[16 18 18])stderr: Unhandled SimpleCommand |
osh_.cc | 34 Set element with var ref [osh_.cc stdout] Expected "['9', '2 3']\n", got "(cmd_value.Argv argv:[argv.py 9 '2 3'] arg_spids:[19 21 21])\n" stdout: (cmd_value.Argv argv:[argv.py 9 '2 3'] arg_spids:[19 21 21])stderr: Unhandled SimpleCommand |
osh_.cc | 35 Set element with array ref [osh_.cc stdout] Expected "['1', '9']\n", got '(cmd_value.Argv argv:[argv.py 1 9] arg_spids:[33 35 35])\n' stdout: (cmd_value.Argv argv:[argv.py 1 9] arg_spids:[33 35 35])stderr: Unhandled SimpleCommand |
osh_.cc | 37 Slice of array with [@] [osh_.cc stdout] Expected "['2', '3']\n", got '(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[9 11 11 11])stderr: Unhandled SimpleCommand |
osh_.cc | 38 Negative slice begin [osh_.cc stdout] Expected "['2', '3', '4', '5']\n", got '(cmd_value.Argv argv:[argv.py 1 2 3 4 5] arg_spids:[13 15 15 15 15 15])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 3 4 5] arg_spids:[13 15 15 15 15 15])stderr: Unhandled SimpleCommand |
osh_.cc | 40 Slice with arithmetic [osh_.cc stdout] Expected "['2', '3']\n", got '(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[12 14 14 14])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[12 14 14 14])stderr: Unhandled SimpleCommand |
osh_.cc | 44 glob within array yields separate elements [osh_.cc stdout] Expected "['_tmp/y.Y', '_tmp/yy.Y']\n", got "(cmd_value.Argv argv:[touch '_tmp/y.Y' '_tmp/yy.Y'] arg_spids:[0 2 4])\n(cmd_value.Argv argv:[argv.py '_tmp/y.Y' '_tmp/yy.Y'] arg_spids:[13 15 15])\n" stdout: (cmd_value.Argv argv:[touch '_tmp/y.Y' '_tmp/yy.Y'] arg_spids:[0 2 4]) (cmd_value.Argv argv:[argv.py '_tmp/y.Y' '_tmp/yy.Y'] arg_spids:[13 15 15])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 45 declare array and then append [osh_.cc stdout] Expected "['a', 'b', 'c']\n", got '(cmd_value.Argv argv:[argv.py a b c] arg_spids:[18 20 20 20])\n' stdout: (cmd_value.Argv argv:[argv.py a b c] arg_spids:[18 20 20 20])stderr: Unhandled SimpleCommand |
osh | 47 Single array with :- stdout: ['x', '']stderr: |
osh_.py | 47 Single array with :- stdout: ['x', '']stderr: |
osh_.cc | 47 Single array with :- [osh_.cc stdout] Expected "['x', '']\n", got "(cmd_value.Argv argv:[argv.py x ''] arg_spids:[6 17 19])\n" stdout: (cmd_value.Argv argv:[argv.py x ''] arg_spids:[6 17 19])stderr: Unhandled SimpleCommand |
osh_.cc | 48 Stripping a whole array unquoted [osh_.cc stdout] Expected "['foo', 'sp', 'ace.h', 'bar']\n", got '(cmd_value.Argv argv:[argv.py foo sp ace.h bar] arg_spids:[15 17 17 17 17])\n' stdout: (cmd_value.Argv argv:[argv.py foo sp ace.h bar] arg_spids:[15 17 17 17 17])stderr: Unhandled SimpleCommand |
osh_.cc | 49 Stripping a whole array quoted [osh_.cc stdout] Expected "['foo', 'sp ace.h', 'bar']\n", got "(cmd_value.Argv argv:[argv.py foo 'sp ace.h' bar] arg_spids:[15 17 17 17])\n" stdout: (cmd_value.Argv argv:[argv.py foo 'sp ace.h' bar] arg_spids:[15 17 17 17])stderr: Unhandled SimpleCommand |
osh_.cc | 53 Create a "user" array out of the argv array [osh_.cc stdout] Expected "['x y', 'z', 'a b', 'c']\n", got "(cmd_value.Argv argv:[argv.py 'x y' z] arg_spids:[30 32 32])\n" stdout: (cmd_value.Argv argv:[argv.py 'x y' z] arg_spids:[30 32 32])stderr: set 4 Unhandled SimpleCommand |
osh_.cc | 54 Tilde expansion within array [osh_.cc stdout] Expected '/home/bob/src /home/bob/git\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/core_passwd.h:16: Str *passwd::GetHomeDir(syntax_asdl::Token *): Assertion `0' failed. |
osh_.cc | 56 array default [osh_.cc stdout] Expected "['1 2', '3']\n", got "(cmd_value.Argv argv:[argv.py '1 2' 3] arg_spids:[11 13 13])\n" stdout: (cmd_value.Argv argv:[argv.py '1 2' 3] arg_spids:[11 13 13])stderr: Unhandled SimpleCommand |
osh_.cc | 58 declare -a / local -a is empty array [osh_.cc stdout] Expected "[]\n['x']\n[]\n['x']\n", got '(cmd_value.Argv argv:[argv.py] arg_spids:[6])\n(cmd_value.Argv argv:[argv.py x] arg_spids:[24 26])\n(cmd_value.Argv argv:[argv.py] arg_spids:[49])\n(cmd_value.Argv argv:[argv.py x] arg_spids:[69 71])\n' stdout: (cmd_value.Argv argv:[argv.py] arg_spids:[6]) (cmd_value.Argv argv:[argv.py x] arg_spids:[24 26]) (cmd_value.Argv argv:[argv.py] arg_spids:[49]) (cmd_value.Argv argv:[argv.py x] arg_spids:[69 71])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 59 Create sparse array [osh_.py stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got "['1']\nlen=1\nunset=\nlen-of-unset=0\n" stdout: ['1'] len=1 unset= len-of-unset=0stderr: |
osh_.cc | 59 Create sparse array [osh_.cc stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got 'len=1\n(cmd_value.Argv argv:[argv.py 1] arg_spids:[30 32])\nunset=\nlen-of-unset=0\n' stdout: len=1 (cmd_value.Argv argv:[argv.py 1] arg_spids:[30 32]) unset= len-of-unset=0stderr: Unhandled SimpleCommand |
osh_.py | 60 Create sparse array implicitly [osh_.py stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got "['1']\nlen=1\nunset=\nlen-of-unset=0\n" stdout: ['1'] len=1 unset= len-of-unset=0stderr: |
osh_.cc | 60 Create sparse array implicitly [osh_.cc stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got 'len=1\n(cmd_value.Argv argv:[argv.py 1] arg_spids:[23 25])\nunset=\nlen-of-unset=0\n' stdout: len=1 (cmd_value.Argv argv:[argv.py 1] arg_spids:[23 25]) unset= len-of-unset=0stderr: Unhandled SimpleCommand |
osh_.cc | 61 Append sparse arrays [osh_.cc stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n", got '(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[58 60 60 60])\n(cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[69 71 80 89])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[58 60 60 60]) (cmd_value.Argv argv:[argv.py 1 2 3] arg_spids:[69 71 80 89])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 62 Slice of sparse array with [@] [osh_.cc stdout] Expected "['1', '2']\n", got '(cmd_value.Argv argv:[argv.py 1 2 2] arg_spids:[36 38 38 38])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2 2] arg_spids:[36 38 38 38])stderr: Unhandled SimpleCommand |