spec test index / oilshell.org
| status | osh | osh_.py | osh_.cc | |
| pass | 7 | 7 | 7 | |
| ok | 3 | 3 | 3 | |
| total | 10 | 10 | 10 | |
| case | osh | osh_.py | osh_.cc | description |
| 0 | pass | pass | pass | Assignment Causes Array Decay |
| 1 | pass | pass | pass | Array Decay with IFS |
| 2 | pass | pass | pass | User arrays decay |
| 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 | pass | pass | Apply vectorized operations on ${a[*]} |
21 passed, 9 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| 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 *) dumb_alloc: gNumNew = 1762 gNumDelete = 119 gMemPos = 61040 gNumMalloc = 67 gNumFree = 0 gMemPos2 = 10272 |
| 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 *)
dumb_alloc:
gNumNew = 1766
gNumDelete = 120
gMemPos = 61136
gNumMalloc = 68
gNumFree = 0
gMemPos2 = 10288
|
| 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 dumb_alloc: gNumNew = 1729 gNumDelete = 113 gMemPos = 60544 gNumMalloc = 55 gNumFree = 0 gMemPos2 = 10096 |