spec test index / oilshell.org
status | bash | mksh | zsh | osh | osh_ALT | |
pass | 9 | 4 | 8 | 9 | 9 | |
ok | 0 | 0 | 1 | 3 | 3 | |
N-I | 2 | 2 | 2 | 0 | 0 | |
BUG | 1 | 6 | 1 | 0 | 0 | |
total | 12 | 12 | 12 | 12 | 12 | |
case | bash | mksh | zsh | osh | osh_ALT | description |
0 | pass | pass | pass | pass | pass | String slice |
1 | pass | pass | ok | ok | ok | Cannot take length of substring slice |
details | details | details | ||||
2 | pass | BUG | pass | pass | pass | Out of range string slice: begin |
details | ||||||
3 | pass | BUG | pass | pass | pass | Out of range string slice: length |
details | ||||||
4 | pass | pass | pass | ok | ok | String slice: negative begin |
details | details | |||||
5 | pass | BUG | pass | ok | ok | String slice: negative second arg is position, not length |
details | details | details | ||||
6 | N-I | N-I | N-I | pass | pass | strict_word_eval with string slice |
details | details | details | ||||
7 | pass | pass | pass | pass | pass | String slice with math |
8 | pass | BUG | pass | pass | pass | Slice undefined |
details | ||||||
9 | pass | BUG | pass | pass | pass | Slice UTF-8 String |
details | ||||||
10 | BUG | BUG | BUG | pass | pass | Slice string with invalid UTF-8 results in empty string and warning |
details | details | details | ||||
11 | N-I | N-I | N-I | pass | pass | Slice string with invalid UTF-8 with strict_word_eval |
details | details | details |
39 passed, 7 OK, 6 not implemented, 8 BUG, 0 failed, 0 timeouts, 0 cases skipped
zsh | 1 Cannot take length of substring slice stdout: 3stderr: |
osh | 1 Cannot take length of substring slice stdout: stderr: echo ${#v:1:3} ^ [ stdin ]:2: Expected } after length expression |
osh_ALT | 1 Cannot take length of substring slice stdout: stderr: echo ${#v:1:3} ^ [ stdin ]:2: Expected } after length expression |
mksh | 2 Out of range string slice: begin stdout: 0stderr: |
mksh | 3 Out of range string slice: length stdout: _defg 0stderr: |
osh | 4 String slice: negative begin stdout: stderr: echo ${foo: -4:3} ^~ [ stdin ]:2: warning: The start index of a string slice can't be negative: -4 |
osh_ALT | 4 String slice: negative begin stdout: stderr: echo ${foo: -4:3} ^~ [ stdin ]:2: warning: The start index of a string slice can't be negative: -4 |
mksh | 5 String slice: negative second arg is position, not length stdout: defg defg defgstderr: |
osh | 5 String slice: negative second arg is position, not length stdout: stderr: echo ${foo:3:-1} ${foo: 3: -2} ${foo:3 :-3 } ^~ [ stdin ]:2: warning: The length of a string slice can't be negative: -1 echo ${foo:3:-1} ${foo: 3: -2} ${foo:3 :-3 } ^~ [ stdin ]:2: warning: The length of a string slice can't be negative: -2 echo ${foo:3:-1} ${foo: 3: -2} ${foo:3 :-3 } ^~ [ stdin ]:2: warning: The length of a string slice can't be negative: -3 |
osh_ALT | 5 String slice: negative second arg is position, not length stdout: stderr: echo ${foo:3:-1} ${foo: 3: -2} ${foo:3 :-3 } ^~ [ stdin ]:2: warning: The length of a string slice can't be negative: -1 echo ${foo:3:-1} ${foo: 3: -2} ${foo:3 :-3 } ^~ [ stdin ]:2: warning: The length of a string slice can't be negative: -2 echo ${foo:3:-1} ${foo: 3: -2} ${foo:3 :-3 } ^~ [ stdin ]:2: warning: The length of a string slice can't be negative: -3 |
bash | 6 strict_word_eval with string slice stdout: slice -bc-stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict_word_eval: invalid shell option name |
mksh | 6 strict_word_eval with string slice stdout: slice -bc-stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
zsh | 6 strict_word_eval with string slice stdout: slice -bc-stderr: zsh: command not found: shopt |
mksh | 8 Slice undefined stdout: -- -- -done-stderr: |
mksh | 9 Slice UTF-8 String stdout: -μstderr: |
bash | 10 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
mksh | 10 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
zsh | 10 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
bash | 11 Slice string with invalid UTF-8 with strict_word_eval stdout: slice -bcd-stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict_word_eval: invalid shell option name |
mksh | 11 Slice string with invalid UTF-8 with strict_word_eval stdout: slice -bcd-stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
zsh | 11 Slice string with invalid UTF-8 with strict_word_eval stdout: slice -bcd-stderr: zsh: command not found: shopt |