spec test index / oilshell.org
status | bash | osh | osh_ALT | |
pass | 16 | 8 | 8 | |
ok | 0 | 5 | 5 | |
FAIL | 0 | 3 | 3 | |
total | 16 | 16 | 16 | |
case | bash | osh | osh_ALT | description |
0 | pass | pass | pass | Lower Case with , and ,, |
1 | pass | pass | pass | Upper Case with ^ and ^^ |
2 | pass | FAIL | FAIL | Lower Case with constant string (VERY WEIRD) |
details | details | |||
3 | pass | FAIL | FAIL | Lower Case glob |
details | details | |||
4 | pass | pass | pass | ${x@Q} |
5 | pass | ok | ok | ${array@Q} and ${array[@]@Q} |
details | details | |||
6 | pass | pass | pass | ${!prefix@} ${!prefix*} yields sorted array of var names |
7 | pass | pass | pass | ${!prefix@} matches var name (regression) |
8 | pass | pass | pass | ${var@a} for attributes |
9 | pass | pass | pass | ${var@a} error conditions |
10 | pass | ok | ok | undef and @P @Q @a |
details | details | |||
11 | pass | ok | ok | argv array and @P @Q @a |
details | details | |||
12 | pass | ok | ok | assoc array and @P @Q @a |
details | details | |||
13 | pass | ok | ok | ${!var[@]@X} |
details | details | |||
14 | pass | pass | pass | ${#var@X} is a parse error |
15 | pass | FAIL | FAIL | ${!A@a} and ${!A[@]@a} |
details | details |
32 passed, 10 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 2 Lower Case with constant string (VERY WEIRD) [osh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo ${x,A} ^ [ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument |
osh_ALT | 2 Lower Case with constant string (VERY WEIRD) [osh_ALT stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: echo ${x,A} ^ [ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument |
osh | 3 Lower Case glob [osh stdout] Expected 'ABC DEF\nABC deF\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError('Id.VOp1_Comma',) |
osh_ALT | 3 Lower Case glob [osh_ALT stdout] Expected 'ABC DEF\nABC deF\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError('Id.VOp1_Comma',) |
osh | 5 ${array@Q} and ${array[@]@Q} stdout: x $'y\\nz' xstderr: echo ${array@Q} ^~ [ stdin ]:6: fatal: Array 'array' can't be referred to as a scalar (without @ or *) |
osh_ALT | 5 ${array@Q} and ${array[@]@Q} stdout: x $'y\\nz' xstderr: echo ${array@Q} ^~ [ stdin ]:6: fatal: Array 'array' can't be referred to as a scalar (without @ or *) |
osh | 10 undef and @P @Q @a stdout: status=0 '' status=0 status=0stderr: |
osh_ALT | 10 undef and @P @Q @a stdout: status=0 '' status=0 status=0stderr: |
osh | 11 argv array and @P @Q @a stdout: status=1 a $'b\\nc' status=0 a status=0stderr: echo ${@@P} ^~~~ [ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray |
osh_ALT | 11 argv array and @P @Q @a stdout: status=1 a $'b\\nc' status=0 a status=0stderr: echo ${@@P} ^~~~ [ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray |
osh | 12 assoc array and @P @Q @a stdout: status=1 status=1 A - A status=0stderr: declare -A A=(["x"]="y"); echo ${A@P} - ${A[@]@P} ^~ [ -c flag ]:1: fatal: Array 'A' can't be referred to as a scalar (without @ or *) declare -A A=(["x"]="y"); echo ${A@Q} - ${A[@]@Q} ^~ [ -c flag ]:1: fatal: Array 'A' can't be referred to as a scalar (without @ or *) |
osh_ALT | 12 assoc array and @P @Q @a stdout: status=1 status=1 A - A status=0stderr: declare -A A=(["x"]="y"); echo ${A@P} - ${A[@]@P} ^~ [ -c flag ]:1: fatal: Array 'A' can't be referred to as a scalar (without @ or *) declare -A A=(["x"]="y"); echo ${A@Q} - ${A[@]@Q} ^~ [ -c flag ]:1: fatal: Array 'A' can't be referred to as a scalar (without @ or *) |
osh | 13 ${!var[@]@X} stdout: fail 'x y' astderr: declare -A A=(["x"]="y"); echo ${!A[@]@P} ^~~~ [ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray |
osh_ALT | 13 ${!var[@]@X} stdout: fail 'x y' astderr: declare -A A=(["x"]="y"); echo ${!A[@]@P} ^~~~ [ -c flag ]:1: fatal: Can't use @P on value.MaybeStrArray |
osh | 15 ${!A@a} and ${!A[@]@a} [osh stdout] Expected 'x=\nx=\n', got 'x=a\n' [osh status] Expected 0, got 1 stdout: x=astderr: echo x=${!A@a} ^~~~ [ stdin ]:3: fatal: Indirect expansion of assoc array |
osh_ALT | 15 ${!A@a} and ${!A[@]@a} [osh_ALT stdout] Expected 'x=\nx=\n', got 'x=a\n' [osh_ALT status] Expected 0, got 1 stdout: x=astderr: echo x=${!A@a} ^~~~ [ stdin ]:3: fatal: Indirect expansion of assoc array |