56 passed, 1 OK, 1 not implemented, 3 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
bash | 3 comparison to ${!array[@]} keys (similar SYNTAX) stdout: ['0', '1'] a_keys=0 [''] a_nobrackets=0 --- ['A', 'B'] A_keys=0 [''] A_nobrackets=0stderr: |
bash | 15 array ref with strict_array stdout: alestderr: bash: line 1: shopt: strict_array: invalid shell option name |
bash | 25 var ref doesn't need cycle detection stdout: cycle=x cycle=stderr: bash: line 7: warning: a: circular name reference |
bash | 26 Var Ref Code Injection $(tee PWNED) stdout: 42 PWNED 0stderr: |
bash | 30 Array indirect expansion with @? conversion stdout: ==== v1 ==== ["'value'"] ['value'] [''] ==== v2 ==== ["''"] [''] [''] ==== a1 ==== [''] [''] ['a'] ==== a2[0] ==== ["'element'"] ['element'] ['a'] ==== a3[@] ==== ["'1'", "'2'", "'3'"] ['1', '2', '3'] ['a', 'a', 'a']stderr: |
osh | 30 Array indirect expansion with @? conversion [osh stdout] Expected '==== 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[\'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[\'1 2 3\']\n' [osh status] Expected 0, got 1 stdout: ==== v1 ==== ['value'] ['value'] [''] ==== v2 ==== ["''"] [''] [''] ==== a1 ==== [''] [''] ['a'] ==== a2[0] ==== ['element'] ['element'] ['a'] ==== a3[@] ==== ['1 2 3']stderr: argv.py "${!ref[@]@P}" ^~ [ stdin ]:6: fatal: Can't use @P on BashArray |