spec test index / oilshell.org
case | dash | bash | mksh | zsh | osh | osh_ALT | osh-byterun | description |
0 | pass | pass | pass | pass | pass | pass | pass | ${##} |
1 | pass | pass | pass | pass | N-I | N-I | N-I | ${###} |
details | details | details | ||||||
2 | pass | pass | pass | pass | N-I | N-I | N-I | ${####} |
details | details | details | ||||||
3 | pass | pass | pass | pass | N-I | N-I | N-I | ${##2} |
details | details | details | ||||||
4 | pass | pass | BUG | pass | N-I | N-I | N-I | ${###2} |
details | details | details | details | |||||
5 | pass | pass | pass | pass | pass | pass | pass | ${1####} |
6 | pass | pass | pass | pass | pass | pass | pass | ${1#'###'} |
7 | ok | N-I | N-I | ok | pass | pass | pass | ${#1#'###'} |
details | details | details | details |
39 passed, 2 ok, 14 known unimplemented, 1 known bugs, 0 failed, 0 skipped
osh | 1 ${###} stdout: stderr: Line 2 of '<stdin>' echo ${###} ^ Expected } after length expression, got '#' |
osh_ALT | 1 ${###} stdout: stderr: Line 2 of '<stdin>' echo ${###} ^ Expected } after length expression, got '#' |
osh-byterun | 1 ${###} stdout: stderr: Line 2 of '<stdin>' echo ${###} ^ Expected } after length expression, got '#' |
osh | 2 ${####} stdout: stderr: Line 2 of '<stdin>' echo ${####} ^~ Expected } after length expression, got '##' |
osh_ALT | 2 ${####} stdout: stderr: Line 2 of '<stdin>' echo ${####} ^~ Expected } after length expression, got '##' |
osh-byterun | 2 ${####} stdout: stderr: Line 2 of '<stdin>' echo ${####} ^~ Expected } after length expression, got '##' |
osh | 3 ${##2} stdout: stderr: Line 2 of '<stdin>' echo ${##2} ^ Expected } after length expression, got '2' |
osh_ALT | 3 ${##2} stdout: stderr: Line 2 of '<stdin>' echo ${##2} ^ Expected } after length expression, got '2' |
osh-byterun | 3 ${##2} stdout: stderr: Line 2 of '<stdin>' echo ${##2} ^ Expected } after length expression, got '2' |
mksh | 4 ${###2} stdout: 25stderr: |
osh | 4 ${###2} stdout: stderr: Line 2 of '<stdin>' echo ${###2} ^ Expected } after length expression, got '#' |
osh_ALT | 4 ${###2} stdout: stderr: Line 2 of '<stdin>' echo ${###2} ^ Expected } after length expression, got '#' |
osh-byterun | 4 ${###2} stdout: stderr: Line 2 of '<stdin>' echo ${###2} ^ Expected } after length expression, got '#' |
dash | 7 ${#1#'###'} stdout: 4stderr: |
bash | 7 ${#1#'###'} stdout: stderr: _tmp/spec-bin/bash: line 2: ${#1#'###'}: bad substitution |
mksh | 7 ${#1#'###'} stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${#1#"###"}: bad substitution |
zsh | 7 ${#1#'###'} stdout: 1stderr: |