spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 7 | 3 | 3 | |
ok | 3 | 3 | 3 | |
FAIL | 0 | 4 | 4 | |
total | 10 | 10 | 10 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | FAIL | FAIL | Assignment Causes Array Decay |
details | details | |||
1 | pass | FAIL | FAIL | Array Decay with IFS |
details | details | |||
2 | pass | FAIL | FAIL | User arrays decay |
details | details | |||
3 | ok | ok | ok | $array is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | details | ||
4 | ok | ok | ok | ${array} is not valid in OSH, is ${array[0]} in ksh/bash |
details | details | details | ||
5 | pass | pass | pass | Assign to array index without initialization |
6 | pass | pass | pass | a[40] grows array |
7 | pass | pass | pass | array decays to string when comparing with [[ a = b ]] |
8 | ok | ok | ok | ++ on a whole array increments the first element (disallowed in OSH) |
details | details | details | ||
9 | pass | FAIL | FAIL | Apply vectorized operations on ${a[*]} |
details | details |
13 passed, 9 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
osh_.py | 0 Assignment Causes Array Decay [osh_.py stdout] Expected "['[x', 'y', 'z]']\n['[x y z]']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "[$@]" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "$var" ^~~~~~~ [ stdin ]:4: 'argv.py' not found |
osh_.cc | 0 Assignment Causes Array Decay [osh_.cc stdout] Expected "['[x', 'y', 'z]']\n['[x y z]']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "[$@]" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "$var" ^~~~~~~ [ stdin ]:4: 'argv.py' not found |
osh_.py | 1 Array Decay with IFS [osh_.py stdout] Expected "['[x y z]']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "$var" ^~~~~~~ [ stdin ]:4: 'argv.py' not found |
osh_.cc | 1 Array Decay with IFS [osh_.cc stdout] Expected "['[x y z]']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "$var" ^~~~~~~ [ stdin ]:4: 'argv.py' not found |
osh_.py | 2 User arrays decay [osh_.py stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${a[@]}" ^~~~~~~ [ stdin ]:6: 'argv.py' not found argv.py "${b}" ^~~~~~~ [ stdin ]:7: 'argv.py' not found argv.py "${c[@]}" ^~~~~~~ [ stdin ]:8: 'argv.py' not found |
osh_.cc | 2 User arrays decay [osh_.cc stdout] Expected "['x', 'y', 'z']\n['x y z']\n['x', 'YYY', 'z']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${a[@]}" ^~~~~~~ [ stdin ]:6: 'argv.py' not found argv.py "${b}" ^~~~~~~ [ stdin ]:7: 'argv.py' not found argv.py "${c[@]}" ^~~~~~~ [ stdin ]:8: 'argv.py' not found |
osh | 3 $array is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo $a ^~ [ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh_.py | 3 $array is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo $a ^~ [ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh_.cc | 3 $array is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo $a ^~~~ [ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh | 4 ${array} is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo ${a} ^~ [ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh_.py | 4 ${array} is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo ${a} ^~ [ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh_.cc | 4 ${array} is not valid in OSH, is ${array[0]} in ksh/bash stdout: stderr: echo ${a} ^~~~ [ stdin ]:2: fatal: Array 'a' can't be referred to as a scalar (without @ or *) |
osh | 8 ++ on a whole array increments the first element (disallowed in OSH) stdout: stderr: (( a++ )) # doesn't make sense ^ [ stdin ]:2: fatal: Expected a value convertible to integer, got value.MaybeStrArray |
osh_.py | 8 ++ on a whole array increments the first element (disallowed in OSH) stdout: stderr: (( a++ )) # doesn't make sense ^ [ stdin ]:2: fatal: Expected a value convertible to integer, got value.MaybeStrArray |
osh_.cc | 8 ++ on a whole array increments the first element (disallowed in OSH) stdout: stderr: (( a++ )) # doesn't make sense ^~ [ stdin ]:2: fatal: Expected a value convertible to integer, got value.MaybeStrArray |
osh_.py | 9 Apply vectorized operations on ${a[*]} [osh_.py stdout] Expected "['x- y-y z-']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${a[*]#-}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 9 Apply vectorized operations on ${a[*]} [osh_.cc stdout] Expected "['x- y-y z-']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${a[*]#-}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |