57 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| osh-cpp | 3 comparison to ${!array[@]} keys (similar SYNTAX) [osh-cpp stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n" [osh-cpp status] Expected 0 Got 2 stdout: ['0', '1'] a_keys=0 [''] a_nobrackets=0 ---stderr: argv.py $(printf '%s\n' ${!A[@]} | sort)
^
[ stdin ]:11: Invalid word while parsing command list
|
| osh-cpp | 12 Indirect expansion, THEN suffix operators [osh-cpp stdout] Expected 'ok\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: val=$(eval "echo \"$1\"")
^
[ stdin ]:5: Invalid word while parsing command list
|
| osh-cpp | 19 var ref TO array with arbitrary subscripts [osh-cpp stdout] Expected 'works: a[1]\nworks: a[$b]\nworks: a[${c:-1}]\nworks: a[$(echo 1)]\nworks: a[$(( 3 - 2 ))]\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: shopt -s eval_unsafe_arith compat_array
^~~~~
[ stdin ]:1: 'shopt' got invalid option 'compat_array'
local val=$(echo "${!1}")
^
[ stdin ]:4: Invalid word while parsing command list
|
| osh-cpp | 21 Indirect expansion TO fancy expansion features bash disallows [osh-cpp stdout] Expected 'done\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: desugared_result=$(eval 'echo "${'"$1"'}"')
^
[ stdin ]:3: Invalid word while parsing command list
|
| osh-cpp | 26 Var Ref Code Injection $(tee PWNED) [osh-cpp stdout] Expected '' Got 'NOPE\n' [osh-cpp status] Expected 1 Got 0 stdout: NOPEstderr: a[$(echo 0 | tee PWNED)]
^
[ contents of var 'x' at line 6 of [ stdin ] ]:1: Invalid word while parsing command list
echo ${!x}
^
[ stdin ]:6: Invalid var ref expression
|