spec test index / oilshell.org
51 passed, 4 OK, 1 not implemented, 4 BUG, 2 failed, 0 timeouts, 0 cases skipped 1 failed under osh
bash-4 | 4 ${!a[@]-'default'} is illegal stdout: ['default'] status=0 status=1stderr: bash-4.4: line 5: x y z: bad substitution |
bash-4 | 15 array ref with strict_array stdout: alestderr: bash-4.4: line 1: shopt: strict_array: invalid shell option name |
bash-4 | 20 Bizarre tilde expansion in array index stdout: ystderr: |
bash-4 | 21 Indirect expansion TO fancy expansion features bash disallows stdout: donestderr: main: line 2: a[0: bad substitution main: line 2: aa[k: bad substitution main: line 2: !x: bad substitution main: line 2: !a[0]: bad substitution main: line 2: x:-foo: bad substitution main: line 2: x:=foo: bad substitution main: line 2: x:?oops: bad substitution main: line 2: x:+yy: bad substitution main: line 2: x:0: bad substitution main: line 2: x:0:1: bad substitution main: line 2: !a@: bad substitution main: line 2: #x: bad substitution main: line 2: x#y: bad substitution main: line 2: x/y/foo: bad substitution main: line 2: x@Q: bad substitution |
osh | 22 Bad var ref stdout: stderr: bad var name ^ [ contents of var 'a' at line 2 of [ stdin ] ]:1: Expected end of var ref expression echo ref ${!a} ^ [ stdin ]:2: fatal: Invalid var ref expression |
osh | 23 Bad var ref 2 stdout: stderr: / ^ [ contents of var 'b' at line 2 of [ stdin ] ]:1: Expected var name echo ref ${!b} ^ [ stdin ]:2: fatal: Invalid var ref expression |
bash-4 | 25 var ref doesn't need cycle detection stdout: cycle=x cycle=stderr: bash-4.4: line 7: warning: a: circular name reference |
bash-4 | 26 Var Ref Code Injection $(tee PWNED) stdout: 42 PWNED 0stderr: |
bash-4 | 29 Array indirect expansion with replacements stdout: ==== v1 ==== ['alue'] ['valu'] ['vlu'] ['vxlux'] ==== v2 ==== [''] [''] [''] [''] ==== a1 ==== [''] [''] [''] [''] ==== a2[0] ==== ['lement'] ['elemen'] ['lmnt'] ['xlxmxnt'] ==== a3[@] ==== [] [] ['1', '2', '3'] ['1', '2', '3']stderr: |
bash-4 | 30 Array indirect expansion with @? conversion [bash-4 stdout] Expected '==== v1 ====\n["\'value\'"]\n[\'value\']\n[\'\']\n==== v2 ====\n["\'assign\'"]\n[\'assign\']\n[\'\']\n==== a1 ====\n["\'assign\'"]\n[\'assign\']\n[\'a\']\n==== a2[0] ====\n["\'element\'"]\n[\'element\']\n[\'a\']\n==== a3[@] ====\n["\'1\'", "\'2\'", "\'3\'"]\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '==== v1 ====\n["\'value\'"]\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n["\'element\'"]\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[]\n[]\n[]\n' stdout: ==== v1 ==== ["'value'"] ['value'] [''] ==== v2 ==== ["''"] [''] [''] ==== a1 ==== [''] [''] ['a'] ==== a2[0] ==== ["'element'"] ['element'] ['a'] ==== a3[@] ==== [] [] []stderr: |
osh | 30 Array indirect expansion with @? conversion [osh stdout] Expected "==== v1 ====\n['value']\n['value']\n['']\n==== v2 ====\n['assign']\n['assign']\n['']\n==== a1 ====\n['assign']\n['assign']\n['a']\n==== a2[0] ====\n['element']\n['element']\n['a']\n==== a3[@] ====\n['1', '2', '3']\n['1', '2', '3']\n['a', 'a', 'a']\n" Got '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'\']\n==== a3[@] ====\n[\'1 2 3\']\n' [osh status] Expected 0, got 1 stdout: ==== v1 ==== ['value'] ['value'] [''] ==== v2 ==== ["''"] [''] [''] ==== a1 ==== [''] [''] ['a'] ==== a2[0] ==== ['element'] ['element'] [''] ==== a3[@] ==== ['1 2 3']stderr: argv.py "${!ref[@]@P}" ^~ [ stdin ]:6: fatal: Can't use @P on BashArray |