spec test index / oilshell.org
case | bash | osh | osh-byterun | description |
0 | pass | pass | pass | ${FUNCNAME[@]} array |
1 | pass | pass | pass | FUNCNAME with source |
2 | pass | FAIL | FAIL | ${BASH_SOURCE[@]} is a stack of source files for function calls |
details | details | |||
3 | pass | FAIL | FAIL | ${BASH_LINENO[@]} is a stack of line numbers for function calls |
details | details | |||
4 | pass | FAIL | FAIL | $LINENO is the current line, not line of function call |
details | details |
9 passed, 0 ok, 0 known unimplemented, 0 known bugs, 3 failed, 0 skipped
osh | 2 ${BASH_SOURCE[@]} is a stack of source files for function calls [osh stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got "['begin F funcs', 'f']\n['begin F files']\n['begin F lines']\n['G funcs', 'g', 'f']\n['G files']\n['G lines']\n['end F funcs', 'f']\n['end F']\n['end F lines']\n" stdout: ['begin F funcs', 'f'] ['begin F files'] ['begin F lines'] ['G funcs', 'g', 'f'] ['G files'] ['G lines'] ['end F funcs', 'f'] ['end F'] ['end F lines']stderr: |
osh-byterun | 2 ${BASH_SOURCE[@]} is a stack of source files for function calls [osh-byterun stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got "['begin F funcs', 'f']\n['begin F files']\n['begin F lines']\n['G funcs', 'g', 'f']\n['G files']\n['G lines']\n['end F funcs', 'f']\n['end F']\n['end F lines']\n" stdout: ['begin F funcs', 'f'] ['begin F files'] ['begin F lines'] ['G funcs', 'g', 'f'] ['G files'] ['G lines'] ['end F funcs', 'f'] ['end F'] ['end F lines']stderr: |
osh | 3 ${BASH_LINENO[@]} is a stack of line numbers for function calls [osh stdout] Expected "['begin F', '9']\n['G', '6', '9']\n['end F', '9']\n", got "['begin F']\n['G']\n['end F']\n" stdout: ['begin F'] ['G'] ['end F']stderr: |
osh-byterun | 3 ${BASH_LINENO[@]} is a stack of line numbers for function calls [osh-byterun stdout] Expected "['begin F', '9']\n['G', '6', '9']\n['end F', '9']\n", got "['begin F']\n['G']\n['end F']\n" stdout: ['begin F'] ['G'] ['end F']stderr: |
osh | 4 $LINENO is the current line, not line of function call [osh stdout] Expected "['5']\n['2']\n['7']\n", got "['9']\n['6']\n['2']\n" stdout: ['9'] ['6'] ['2']stderr: |
osh-byterun | 4 $LINENO is the current line, not line of function call [osh-byterun stdout] Expected "['5']\n['2']\n['7']\n", got "['9']\n['6']\n['2']\n" stdout: ['9'] ['6'] ['2']stderr: |