151 passed, 9 OK, 40 not implemented, 7 BUG, 53 failed, 0 timeouts, 0 cases skipped 5 failed under osh
| dash | 0 recursive arith: one level stdout: stderr: dash: 2: Illegal number: b=123 |
| toysh | 0 recursive arith: one level [toysh stdout] Expected '123\n' Got '0\n' stdout: 0stderr: |
| dash | 1 recursive arith: two levels stdout: stderr: dash: 2: Illegal number: b=c |
| toysh | 1 recursive arith: two levels [toysh stdout] Expected '123\n' Got '' [toysh status] Expected 0 Got 1 stdout: stderr: main: line 2: sh: =0 main: line 2: sh: bad math: a @ 1 |
| dash | 2 recursive arith: short circuit &&, || stdout: 1:0stderr: dash: 3: Illegal number: b=123 |
| ash | 2 recursive arith: short circuit &&, || stdout: 1:123 1:123 0:321 1:321stderr: |
| mksh | 2 recursive arith: short circuit &&, || stdout: 1:123 1:123 0:321 1:321stderr: |
| toysh | 2 recursive arith: short circuit &&, || [toysh stdout] Expected '1:0\n1:123\n0:0\n1:321\n' Got '1:0\n0:0\n0:0\n0:0\n' stdout: 1:0 0:0 0:0 0:0stderr: |
| dash | 3 recursive arith: short circuit ?: stdout: stderr: dash: 2: Illegal number: a=123 |
| ash | 3 recursive arith: short circuit ?: stdout: 123:321 321:321stderr: |
| toysh | 3 recursive arith: short circuit ?: [toysh stdout] Expected '123:123\n321:321\n' Got '0:0\n0:0\n' stdout: 0:0 0:0stderr: |
| dash | 4 recursive arith: side effects stdout: stderr: dash: 2: Illegal number: b=c |
| ash | 4 recursive arith: side effects stdout: 0:123stderr: |
| zsh | 4 recursive arith: side effects stdout: 0:123stderr: |
| toysh | 4 recursive arith: side effects [toysh stdout] Expected '123:123\n' Got '' [toysh status] Expected 0 Got 1 stdout: stderr: main: line 2: sh: =0 main: line 2: sh: bad math: a,d @ 1 |
| dash | 5 recursive arith: recursion stdout: stderr: dash: 2: Illegal number: i<=100&&(s+=i,i++,loop) |
| ash | 5 recursive arith: recursion stdout: stderr: ash: expression recursion loop detected |
| mksh | 5 recursive arith: recursion stdout: stderr: mksh: <stdin>[2]: i<=100&&(s+=i,i++,loop): expression recurses on parameter 'loop' |
| ksh | 5 recursive arith: recursion [ksh stdout] Expected '5050\n' Got '' [ksh status] Expected 0 Got 1 stdout: stderr: W: ksh: <stdin>[2]: i<=100&&(s+=i,i++,loop): expression recurses on parameter 'loop' |
| toysh | 5 recursive arith: recursion [toysh stdout] Expected '5050\n' Got '' [toysh status] Expected 0 Got -11 stdout: stderr: |
| dash | 6 recursive arith: array elements stdout: stderr: dash: 1: text[1]=d=123: not found dash: 2: text[2]=text[1]: not found dash: 3: text[3]=text[2]: not found dash: 4: arithmetic expression: expecting EOF: "a=text[3]" |
| ash | 6 recursive arith: array elements stdout: stderr: ash: text[1]=d=123: not found ash: text[2]=text[1]: not found ash: text[3]=text[2]: not found ash: arithmetic syntax error |
| toysh | 6 recursive arith: array elements [toysh stdout] Expected '123\n' Got '' [toysh status] Expected 0 Got 1 stdout: stderr: sh: text[1]=d=123: No such file or directory sh: text[2]=text[1]: No such file or directory sh: text[3]=text[2]: No such file or directory main: line 4: sh: =0 main: line 4: sh: bad math: a=text[3] @ 7 |
| toysh | 7 dynamic arith varname: assign [toysh stdout] Expected 'a_x=3 a_y=4\nb_x=5 b_y=12\n' Got 'a_x=0 a_y=0\nb_x=0 b_y=0\n' stdout: a_x=0 a_y=0 b_x=0 b_y=0stderr: |
| toysh | 8 dynamic arith varname: read [toysh stdout] Expected 'x=12 y=34\n' Got 'x=12 y=0\n' stdout: x=12 y=0stderr: |
| toysh | 9 dynamic arith varname: copy/add [toysh stdout] Expected 'c_x=3 c_y=4\nc_x=7 c_y=24\n' Got 'c_x=0 c_y=0\nc_x=4 c_y=20\n' stdout: c_x=0 c_y=0 c_x=4 c_y=20stderr: sh: shopt: No such file or directory |
| dash | 10 is-array with ${var@a} stdout: stderr: |
| ash | 10 is-array with ${var@a} stdout: stderr: |
| zsh | 10 is-array with ${var@a} stdout: stderr: ble/is-array: bad substitution |
| mksh | 10 is-array with ${var@a} stdout: stderr: |
| ksh | 10 is-array with ${var@a} [ksh stdout] Expected 'undef 1\nstring 1\narray 0\n' Got 'undef 127\nstring 127\narray 127\n' stdout: undef 127 string 127 array 127stderr: E: ksh: <stdin>[5]: ble/is-array: inaccessible or not found E: ksh: <stdin>[9]: ble/is-array: inaccessible or not found E: ksh: <stdin>[13]: ble/is-array: inaccessible or not found |
| toysh | 10 is-array with ${var@a} [toysh stdout] Expected 'undef 1\nstring 1\narray 0\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| sush | 10 is-array with ${var@a} [sush stdout] Expected 'undef 1\nstring 1\narray 0\n' Got 'undef 127\nstring 127\narray 127\n' stdout: undef 127 string 127 array 127stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: syntax error near unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: ble/is-array: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: ble/is-array: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: ble/is-array: command not found |
| dash | 11 Sparse array with big index stdout: stderr: dash: 1: Syntax error: "(" unexpected
|
| ash | 11 Sparse array with big index stdout: stderr: ash: syntax error: unexpected "("
|
| zsh | 11 Sparse array with big index stdout: len=1048576stderr: |
| toysh | 11 Sparse array with big index [toysh stdout] Expected 'len=1\n' Got '' [toysh status] Expected 0 Got 1 stdout: stderr: sh: a[i]=1: No such file or directory main: line 11: sh: a: [@]} |
| dash | 12 shift unshift reverse stdout: stderr: dash: 4: function: not found dash: 5: builtin: not found dash: 6: Syntax error: "}" unexpected |
| ash | 12 shift unshift reverse stdout: stderr: |
| zsh | 12 shift unshift reverse stdout: 1 2 3 4 5 6 2 3 4 5 6 4 5 6 --- 99 4 5 6 --- 5 4 99stderr: (eval):4: a: assignment to invalid subscript range |
| mksh | 12 shift unshift reverse stdout: stderr: |
| ksh | 12 shift unshift reverse [ksh stdout] Expected '1 2 3 4 5 6\n2 3 4 5 6\n4 5 6\n---\n99 4 5 6\n---\n6 5 4 99\n' Got '' [ksh status] Expected 0 Got 1 stdout: stderr: E: ksh: <stdin>[4]: ble/array#unshift: invalid function name |
| toysh | 12 shift unshift reverse [toysh stdout] Expected '1 2 3 4 5 6\n2 3 4 5 6\n4 5 6\n---\n99 4 5 6\n---\n6 5 4 99\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| sush | 12 shift unshift reverse [sush stdout] Expected '1 2 3 4 5 6\n2 3 4 5 6\n4 5 6\n---\n99 4 5 6\n---\n6 5 4 99\n' Got '1 2 3 4 5 6\n1 2 3 4 5 6\n1 2 3 4 5 6\n---\n1 2 3 4 5 6\n---\n1 2 3 4 5 6\n' stdout: 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 --- 1 2 3 4 5 6 --- 1 2 3 4 5 6stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: function: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: eval: line 5: syntax error near unexpected token `("${@:2}"'
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: eval: line 5: `=("${@:2}" "${[@]}")'
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: syntax error near unexpected token: }
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: function: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: eval: line 8: syntax error near unexpected token `("${[@]:1}")'
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: eval: line 8: `=("${[@]:1}")'
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: syntax error near unexpected token: }
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: function: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: eval: line 14: syntax error near unexpected token `()
'
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: eval: line 14: `
set -- "${[@]}"; =()
local e i=$#
for e; do [--i]="$e"; done'
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: syntax error near unexpected token: }
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 20: ble/array#shift: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 23: ble/array#shift: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 28: ble/array#unshift: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 33: ble/array#reverse: command not found
|
| dash | 13 shopt -u expand_aliases and eval stdout: stderr: |
| ash | 13 shopt -u expand_aliases and eval stdout: stderr: |
| zsh | 13 shopt -u expand_aliases and eval stdout: stderr: |
| mksh | 13 shopt -u expand_aliases and eval stdout: stderr: |
| ksh | 13 shopt -u expand_aliases and eval [ksh stdout] Expected 'hello\n' Got '' [ksh status] Expected 0 Got 127 stdout: stderr: E: f: <stdin>[11]: shopt: inaccessible or not found E: f: <stdin>[11]: shopt: inaccessible or not found |
| toysh | 13 shopt -u expand_aliases and eval [toysh stdout] Expected 'hello\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| brush | 13 shopt -u expand_aliases and eval [brush stdout] Expected 'hello\n' Got '' stdout: stderr: error: unexpected argument 'hello' found Usage: false For more information, try '--help'. |
| dash | 14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails stdout: stderr: |
| ash | 14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails stdout: stderr: |
| toysh | 14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails [toysh stdout] Expected 'v=1\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| sush | 14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails [sush stdout] Expected 'v=1\n' Got 'v=x\n' stdout: v=xstderr: |
| brush | 14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails [brush stdout] Expected 'v=1\n' Got 'v=x\n' stdout: v=xstderr: typeset: v=1: not a valid variable name |
| osh | 14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails [osh stdout] Expected 'v=1\n' Got 'COLUMNS=80\nCOMP_WORDBREAKS=$\' \\t\\n"\\\'><=;|&(:\'\nEUID=1000\nHOSTNAME=hoover\nIFS=$\' \\t\\n\'\nLC_ALL=C.UTF-8\nLINES=24\nLOCALE_ARCHIVE=\'\'\nOILS_GC_ON_EXIT=\'\'\nOPTIND=1\nOSTYPE=Linux\nPATH=\'/home/andy/git/oils-for-unix/oils/spec/bin:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/andy/bin:/home/andy/git/oils-for-unix/oils.DEPS/wedge/python2/2.7.18/bin\'\nPPID=677858\nPS4=\'${SHX_indent}${SHX_punct}${SHX_pid_str} \'\nPWD=/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/ble-idioms.test.sh/14-osh\nREPO_ROOT=/home/andy/git/oils-for-unix/oils\nSH=/home/andy/git/oils-for-unix/oils/_bin/cxx-asan/osh\nSHELLOPTS=hashall\nTMP=/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/ble-idioms.test.sh/14-osh\nUID=1000\na=(typeset \'v=1\')\nv=x\nv=x\n' stdout: COLUMNS=80
COMP_WORDBREAKS=$' \t\n"\'><=;|&(:'
EUID=1000
HOSTNAME=hoover
IFS=$' \t\n'
LC_ALL=C.UTF-8
LINES=24
LOCALE_ARCHIVE=''
OILS_GC_ON_EXIT=''
OPTIND=1
OSTYPE=Linux
PATH='/home/andy/git/oils-for-unix/oils/spec/bin:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/home/andy/git/oils-for-unix/oils/../oils.DEPS/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/git/oils-for-unix/oils/_tmp/shells:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/andy/bin:/home/andy/git/oils-for-unix/oils.DEPS/wedge/python2/2.7.18/bin'
PPID=677858
PS4='${SHX_indent}${SHX_punct}${SHX_pid_str} '
PWD=/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/ble-idioms.test.sh/14-osh
REPO_ROOT=/home/andy/git/oils-for-unix/oils
SH=/home/andy/git/oils-for-unix/oils/_bin/cxx-asan/osh
SHELLOPTS=hashall
TMP=/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/ble-idioms.test.sh/14-osh
UID=1000
a=(typeset 'v=1')
v=x
v=x
stderr: |
| dash | 15 Issue #1069 [40] BUG: a=declare; "$a" v=1 fails stdout: stderr: |
| ash | 15 Issue #1069 [40] BUG: a=declare; "$a" v=1 fails stdout: stderr: |
| toysh | 15 Issue #1069 [40] BUG: a=declare; "$a" v=1 fails [toysh stdout] Expected 'v=1\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| sush | 15 Issue #1069 [40] BUG: a=declare; "$a" v=1 fails [sush stdout] Expected 'v=1\n' Got 'v=x\n' stdout: v=xstderr: |
| dash | 17 Issue #1069 [49] BUG: \return 0 does not work (other variations) stdout: unexpected status=0 unexpected status=0 status=3stderr: dash: 1: builtin: not found dash: 2: builtin: not found |
| ash | 17 Issue #1069 [49] BUG: \return 0 does not work (other variations) stdout: unexpected status=0 unexpected status=0 status=3stderr: ash: builtin: not found ash: builtin: not found |
| zsh | 17 Issue #1069 [49] BUG: \return 0 does not work (other variations) stdout: status=3 status=3 unexpected status=0stderr: f4: command not found: return |
| toysh | 17 Issue #1069 [49] BUG: \return 0 does not work (other variations) [toysh stdout] Expected 'status=3\nstatus=3\nstatus=3\n' Got 'unexpected\nstatus=0\nunexpected\nstatus=0\nunexpected\nstatus=0\n' stdout: unexpected status=0 unexpected status=0 unexpected status=0stderr: sh: builtin: No such file or directory sh: builtin: No such file or directory sh: command: No such file or directory |
| dash | 18 Issue #1069 [52] BUG: \builtin local v=1 fails stdout: stderr: |
| ash | 18 Issue #1069 [52] BUG: \builtin local v=1 fails stdout: stderr: |
| ksh | 18 Issue #1069 [52] BUG: \builtin local v=1 fails [ksh stdout] Expected 'l:v=1\ng:v=x\n' Got 'g:v=x\n' stdout: g:v=xstderr: E: ksh: <stdin>[7]: builtin: local: not found |
| toysh | 18 Issue #1069 [52] BUG: \builtin local v=1 fails [toysh stdout] Expected 'l:v=1\ng:v=x\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| sush | 18 Issue #1069 [52] BUG: \builtin local v=1 fails [sush stdout] Expected 'l:v=1\ng:v=x\n' Got 'l:v=x\ng:v=x\n' stdout: l:v=x g:v=xstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: builtin: local: not a shell builtin |
| dash | 19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails stdout: stderr: |
| ash | 19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails stdout: stderr: |
| zsh | 19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails stdout: status=1, a[1]=x status=1, a[2]=x status=1, a[3]=xstderr: zsh: bad pattern: a[5 zsh: bad pattern: a[1 zsh: bad pattern: a[1 |
| toysh | 19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails [toysh stdout] Expected 'status=0, a[1]=hello\nstatus=0, a[2]=hello\nstatus=0, a[3]=hello\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| brush | 19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails [brush stdout] Expected 'status=0, a[1]=hello\nstatus=0, a[2]=hello\nstatus=0, a[3]=hello\n' Got 'status=127, a[1]=x\nstatus=127, a[2]=x\nstatus=127, a[3]=x\n' stdout: status=127, a[1]=x status=127, a[2]=x status=127, a[3]=xstderr: [31merror:[39m command not found: a[5 [31merror:[39m command not found: 3]=hello [31merror:[39m command not found: a[1 [31merror:[39m command not found: a[1 [31merror:[39m command not found: 2]=hello |
| osh | 19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails [osh stdout] Expected 'status=0, a[1]=hello\nstatus=0, a[2]=hello\nstatus=0, a[3]=hello\n' Got 'status=127, a[1]=x\nstatus=127, a[2]=x\nstatus=127, a[3]=x\n' stdout: status=127, a[1]=x status=127, a[2]=x status=127, a[3]=xstderr: a[5&3]=hello
^
a[5&3]=hello
^~
[ eval arg at line 5 of [ stdin ] ]:1
eval 'a[5&3]=hello'
^~~~
[ eval arg at line 5 of [ stdin ] ]:1
eval 'a[5&3]=hello'
^~~~
[ stdin ]:5: Command '3]=hello' not found (OILS-ERR-100)
[ stdin ]:5: Command 'a[5' not found (OILS-ERR-100)
a[1 + 1]=hello
^~
[ eval arg at line 9 of [ stdin ] ]:1
eval 'a[1 + 1]=hello'
^~~~
[ stdin ]:9: Command 'a[1' not found (OILS-ERR-100)
a[1|2]=hello
^
a[1|2]=hello
^~
[ eval arg at line 13 of [ stdin ] ]:1
eval 'a[1|2]=hello'
^~~~
[ eval arg at line 13 of [ stdin ] ]:1
[ stdin ]:13: Command '2]=hello' not found (OILS-ERR-100)
eval 'a[1|2]=hello'
^~~~
[ stdin ]:13: Command 'a[1' not found (OILS-ERR-100)
|
| dash | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) [dash stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 3: a[1: not found dash: 4: a[3: not found dash: 4: 4]=8: not found dash: 5: Syntax error: word unexpected (expecting ")") |
| ash | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) stdout: stderr: |
| zsh | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) stdout: stderr: |
| mksh | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) stdout: set -A a typeset a[3]=7 typeset a[7]=8 typeset a[9]=9 set -A a typeset a[3]=55 typeset a[7]=8 typeset a[9]=9 typeset a[41]=66stderr: |
| ksh | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) [ksh stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got 'set -A a\ntypeset a[3]=7\ntypeset a[7]=8\ntypeset a[9]=9\nset -A a\ntypeset a[3]=55\ntypeset a[7]=8\ntypeset a[9]=9\ntypeset a[41]=66\n' stdout: set -A a typeset a[3]=7 typeset a[7]=8 typeset a[9]=9 set -A a typeset a[3]=55 typeset a[7]=8 typeset a[9]=9 typeset a[41]=66stderr: |
| toysh | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) [toysh stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| brush | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) [brush stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got 'declare -a a=([3]="55")\n' stdout: declare -a a=([3]="55")stderr: [31merror:[39m command not found: a[1 [31merror:[39m command not found: a[3 [31merror:[39m command not found: 4]=8 [31merror:[39m main: syntax error near token `*3]=9' (line 1 col 8) declare: a: not found [31merror:[39m command not found: a[3 |
| osh | 20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) [osh stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got '' [osh status] Expected 0 Got 2 stdout: stderr: a[1 + 2]=7
^~
[ stdin ]:3: Command 'a[1' not found (OILS-ERR-100)
a[3|4]=8
^
[ stdin ]:4: Command '4]=8' not found (OILS-ERR-100)
a[3|4]=8
^~
[ stdin ]:4: Command 'a[3' not found (OILS-ERR-100)
a[(1+2)*3]=9
^
[ stdin ]:5: Unexpected left paren (might need a space before it)
|
| bash | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message stdout: stderr: bash: line 1: typeset: nonexistent: not found |
| dash | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message stdout: stderr: dash: 1: typeset: not found |
| ash | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message stdout: stderr: ash: typeset: not found |
| zsh | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message stdout: stderr: typeset: no such variable: nonexistent |
| mksh | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message stdout: stderr: |
| ksh | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message [ksh stderr] Expected "[ stdin ]:1: osh: typeset: 'nonexistent' is not defined\n" Got '' [ksh status] Expected 1 Got 0 stdout: stderr: |
| toysh | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message [toysh stderr] Expected "[ stdin ]:1: osh: typeset: 'nonexistent' is not defined\n" Got 'sh: typeset: No such file or directory\n' [toysh status] Expected 1 Got 127 stdout: stderr: sh: typeset: No such file or directory |
| sush | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message [sush stderr] Expected "[ stdin ]:1: osh: typeset: 'nonexistent' is not defined\n" Got '/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: nonexistent: not found\n' stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: nonexistent: not found |
| brush | 21 Issue #1069 [56] BUG: declare -p unset does not print any error message [brush stderr] Expected "[ stdin ]:1: osh: typeset: 'nonexistent' is not defined\n" Got 'declare: nonexistent: not found\n' stdout: stderr: declare: nonexistent: not found |
| toysh | 22 Issue #1069 [57] BUG: variable v is invisible after IFS= eval 'local v=...' [toysh stdout] Expected 'l:1\ng:x\n' Got '' [toysh status] Expected 0 Got -11 stdout: stderr: |
| sush | 22 Issue #1069 [57] BUG: variable v is invisible after IFS= eval 'local v=...' [sush stdout] Expected 'l:1\ng:x\n' Got 'l:x\ng:x\n' stdout: l:x g:xstderr: |
| sush | 23 Issue #1069 [57] - Variable v should be visible after IFS= eval 'local v=...' [sush stdout] Expected 'v=hello\n' Got '' [sush status] Expected 0 Got 1 stdout: stderr: |
| brush | 23 Issue #1069 [57] - Variable v should be visible after IFS= eval 'local v=...' [brush stdout] Expected 'v=hello\n' Got 'v=h e l l o\n' stdout: v=h e l l ostderr: |
| dash | 24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0] stdout: stderr: |
| ash | 24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0] stdout: stderr: |
| zsh | 24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0] stdout: ['v']stderr: |
| toysh | 24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0] [toysh stdout] Expected "['v', '2', '3']\n" Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| osh | 24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0] [osh stdout] Expected "['v', '2', '3']\n" Got "['v']\n" stdout: ['v']stderr: |
| dash | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc [dash stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got '' [dash status] Expected 0 Got 2 stdout: stderr: dash: 3: Syntax error: "(" unexpected
|
| ash | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc stdout: stderr: |
| zsh | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc stdout: stderr: |
| mksh | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc stdout: set -A a typeset a[0]=99 typeset a[1]=2 typeset a[2]=3stderr: mksh: <stdin>[7]: syntax error: '(' unexpected
|
| ksh | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc [ksh stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got 'set -A a\ntypeset a[0]=99\ntypeset a[1]=2\ntypeset a[2]=3\n' [ksh status] Expected 0 Got 1 stdout: set -A a typeset a[0]=99 typeset a[1]=2 typeset a[2]=3stderr: E: ksh: <stdin>[7]: syntax error: unexpected '('
|
| toysh | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc [toysh stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
| osh | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc [osh stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got 'declare -- a=99\ndeclare -- A=99\n' stdout: declare -- a=99 declare -- A=99stderr: |