spec test index / oilshell.org
203 passed, 19 ok, 9 known unimplemented, 4 known bugs, 3 failed, 0 skipped
osh-byterun | 0 SETUP [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 1 "${a[@]}" and "${a[*]}" [osh-byterun stdout] Expected "['1', '2 3', '1 2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 2 ${a[@]} and ${a[*]} [osh-byterun stdout] Expected "['1', '2', '3', '1', '2', '3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 3 4 ways to interpolate empty array [osh-byterun stdout] Expected "['1', '2', '3', '', '4', '5']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 4 empty array [osh-byterun stdout] Expected '[]\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 5 Empty array with :- [osh-byterun stdout] Expected "['not', 'one', 'not one']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 6 nounset with empty array (design bug, makes it hard to use arrays) stdout: stderr: _tmp/spec-bin/mksh: <stdin>[3]: empty[@]: parameter not set |
osh-byterun | 6 nounset with empty array (design bug, makes it hard to use arrays) [osh-byterun stdout] Expected '[]\nstatus=0\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 7 local array stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: '(' unexpected |
osh-byterun | 7 local array [osh-byterun stdout] Expected "['1']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 8 Command with with word splitting in array [osh-byterun stdout] Expected "['1 2', '3', '4']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 9 space before ( in array initialization stdout: 1stderr: |
osh-byterun | 9 space before ( in array initialization [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 10 array over multiple lines [osh-byterun stdout] Expected "['1', '2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 11 array with invalid token stdout: stderr: _tmp/spec-bin/mksh: <stdin>[3]: syntax error: '&' unexpected |
osh-byterun | 11 array with invalid token [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 12 array with empty string [osh-byterun stdout] Expected "['']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 13 Retrieve index [osh-byterun stdout] Expected "['2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 14 Retrieve out of bounds index [osh-byterun stdout] Expected "['']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 15 Negative index stdout: ['', '', '']stderr: |
osh-byterun | 15 Negative index [osh-byterun stdout] Expected "['2 3', '1', '']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 16 Retrieve index that is a variable [osh-byterun stdout] Expected "['2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 17 Retrieve index that is a variable without $ [osh-byterun stdout] Expected "['2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 18 Retrieve index that is a command sub [osh-byterun stdout] Expected "['2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 19 Retrieve array indices with ${!a} [osh-byterun stdout] Expected "['0', '1']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 20 Retrieve sparse array indices with ${!a} [osh-byterun stdout] Expected "['99']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 21 ${!a[1]} is named ref in bash stdout: ['a[1]']stderr: |
osh-byterun | 21 ${!a[1]} is named ref in bash [osh-byterun stdout] Expected "['bar']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 22 ${!a} on array stdout: ['a']stderr: |
osh | 22 ${!a} on array [osh stdout] Expected "['']\n", got "['0', '1']\n" stdout: ['0', '1']stderr: |
osh_ALT | 22 ${!a} on array [osh_ALT stdout] Expected "['']\n", got "['0', '1']\n" stdout: ['0', '1']stderr: |
osh-byterun | 22 ${!a} on array [osh-byterun stdout] Expected "['']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 23 All elements unquoted [osh-byterun stdout] Expected "['1', '2', '3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 24 All elements quoted [osh-byterun stdout] Expected "['1', '2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 25 $* [osh-byterun stdout] Expected "['1', '2', '3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 26 "$*" [osh-byterun stdout] Expected "['1 2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 27 Interpolate array into array [osh-byterun stdout] Expected "['0', '1', '2 3', '4 5']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 28 Exporting array doesn't do anything, not even first element stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
osh | 28 Exporting array doesn't do anything, not even first element stdout: stderr: Line 1 of '<stdin>' export PYTHONPATH=(a b c) ^~~~~~~~~~~ Commands can't contain array literals |
osh_ALT | 28 Exporting array doesn't do anything, not even first element stdout: stderr: Line 1 of '<stdin>' export PYTHONPATH=(a b c) ^~~~~~~~~~~ Commands can't contain array literals |
osh-byterun | 28 Exporting array doesn't do anything, not even first element [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 29 Arrays can't be used as env bindings stdout: a (b b)stderr: |
mksh | 29 Arrays can't be used as env bindings stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
osh-byterun | 29 Arrays can't be used as env bindings [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 30 Set element [osh-byterun stdout] Expected "['9', '2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 31 Set element with var ref [osh-byterun stdout] Expected "['9', '2 3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 32 Set element with array ref [osh-byterun stdout] Expected "['1', '9']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 33 Set array item to array stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: set: a[0]: is not an identifier |
osh | 33 Set array item to array [osh stdout] Expected 'status=1\n', got '' [osh status] Expected 0, got 2 stdout: stderr: Line 2 of '<stdin>' a[0]=(3 4) ^ Expected word type <Id_t Right_FuncDef 93>, got <Id_t Word_Compound 199> |
osh_ALT | 33 Set array item to array [osh_ALT stdout] Expected 'status=1\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: Line 2 of '<stdin>' a[0]=(3 4) ^ Expected word type <Id_t Right_FuncDef 93>, got <Id_t Word_Compound 199> |
osh-byterun | 33 Set array item to array [osh-byterun stdout] Expected 'status=1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 34 Slice of array with [@] stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${a[@]: 1:2}: bad substitution |
osh-byterun | 34 Slice of array with [@] [osh-byterun stdout] Expected "['2', '3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 35 Negative slice stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${a[@]: (-2):1}: bad substitution |
osh-byterun | 35 Negative slice [osh-byterun stdout] Expected "['2']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 36 Slice with arithmetic stdout: stderr: _tmp/spec-bin/mksh: <stdin>[3]: ${a[@]:i-4:2}: bad substitution |
osh-byterun | 36 Slice with arithmetic [osh-byterun stdout] Expected "['2', '3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 37 Number of elements [osh-byterun stdout] Expected '2 2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 38 Length of an element [osh-byterun stdout] Expected '3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 39 Iteration [osh-byterun stdout] Expected u'1\n2 3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 40 glob within array yields separate elements [osh-byterun stdout] Expected "['_tmp/y.Y', '_tmp/yy.Y']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 41 declare array and then append [osh-byterun stdout] Expected "['a', 'b', 'c']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 42 Array syntax in wrong place stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
osh-byterun | 42 Array syntax in wrong place [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 43 Single array with :- stdout: ['none', 'x', '']stderr: |
mksh | 43 Single array with :- stdout: ['none', 'x', 'none']stderr: |
osh | 43 Single array with :- stdout: ['x', '']stderr: |
osh_ALT | 43 Single array with :- stdout: ['x', '']stderr: |
osh-byterun | 43 Single array with :- [osh-byterun stdout] Expected "['x', '']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 44 Stripping a whole array unquoted stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${files[@]%.c}: bad substitution |
osh-byterun | 44 Stripping a whole array unquoted [osh-byterun stdout] Expected "['foo', 'sp', 'ace.h', 'bar']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 45 Stripping a whole array quoted stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${files[@]%.c}: bad substitution |
osh-byterun | 45 Stripping a whole array quoted [osh-byterun stdout] Expected "['foo', 'sp ace.h', 'bar']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 46 Multiple subscripts not allowed stdout: stderr: _tmp/spec-bin/bash: line 2: ${a[0][0]}: bad substitution |
mksh | 46 Multiple subscripts not allowed stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${a[0][0]}: bad substitution |
osh-byterun | 46 Multiple subscripts not allowed [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 47 Length op, index op, then transform op is not allowed stdout: stderr: _tmp/spec-bin/bash: line 2: ${#a[0]/1/xxx}: bad substitution |
mksh | 47 Length op, index op, then transform op is not allowed stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${#a[0]/1/xxx}: bad substitution |
osh-byterun | 47 Length op, index op, then transform op is not allowed [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 48 Array subscript not allowed on string stdout: abcstderr: |
mksh | 48 Array subscript not allowed on string stdout: abcstderr: |
osh-byterun | 49 Create a "user" array out of the argv array [osh-byterun stdout] Expected "['x y', 'z', 'a b', 'c']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 50 Tilde expansion within array [osh-byterun stdout] Expected '/home/bob/src /home/bob/git\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 51 Brace Expansion within Array [osh-byterun stdout] Expected '-a -b c- d-\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 52 array default [osh-byterun stdout] Expected "['1 2', '3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 53 Singleton Array Copy and Assign. Can't index string with int. stdout: 4 4 1 1 4 4 1 1stderr: |
mksh | 53 Singleton Array Copy and Assign. Can't index string with int. stdout: 4 4 1 1 4 4 1 1stderr: |
osh-byterun | 53 Singleton Array Copy and Assign. Can't index string with int. [osh-byterun stdout] Expected '4 4\n1 1\n', got '' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 54 declare -a / local -a is empty array [osh-byterun stdout] Expected "[]\n['x']\n[]\n['x']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 55 Create sparse array [osh-byterun stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 56 Create sparse array implicitly [osh-byterun stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 57 Append sparse arrays [osh-byterun stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 58 Slice of sparse array with [@] stdout: stderr: _tmp/spec-bin/mksh: <stdin>[4]: ${a[@]: 15:2}: bad substitution |
osh-byterun | 58 Slice of sparse array with [@] [osh-byterun stdout] Expected "['1', '2']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 59 Using an array itself as the index [osh stdout] Expected "['42', '99', '42', '99', '']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: Line 1 of '<stdin>' a[a]=42 ^~ osh warning: Coercing undefined value to 0 in arithmetic context Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 783, in <module> main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 752, in main sys.exit(AppBundleMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 726, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 558, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 162, in Batch is_control_flow, is_fatal = ex.ExecuteAndCatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1236, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1184, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 847, in _Dispatch self.mem.SetVar(lval, val, flags, lookup_mode) File "/home/andy/git/oilshell/oil/osh/state.py", line 891, in SetVar strs[lval.index] = val.s TypeError: list indices must be integers, not list |
osh_ALT | 59 Using an array itself as the index [osh_ALT stdout] Expected "['42', '99', '42', '99', '']\n", got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Line 1 of '<stdin>' a[a]=42 ^~ osh warning: Coercing undefined value to 0 in arithmetic context Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 770, in _cpython_main_hook main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 752, in main sys.exit(AppBundleMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 745, in AppBundleMain return readlink.main(main_argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 558, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 169, in Batch return ex.LastStatus() File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1236, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1184, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1129, in _Dispatch libc.print_time(real, user, sys_) File "/home/andy/git/oilshell/oil/osh/state.py", line 891, in SetVar strs[lval.index] = val.s TypeError: list indices must be integers, not list FATAL: couldn't import from app bundle '_tmp/oil-tar-test/oil-0.6.pre17/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh-byterun | 59 Using an array itself as the index [osh-byterun stdout] Expected "['42', '99', '42', '99', '']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |