Results for ble-idioms.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 25681518182181921
ok 1113300000
N-I 017145400000
BUG 0033100000
FAIL 02000824875
total26262626262626262626
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass N-I pass pass pass pass FAIL pass pass pass recursive arith: one level
detailsdetails
1pass N-I pass pass pass pass FAIL pass pass pass recursive arith: two levels
detailsdetails
2pass N-I BUG pass BUG pass FAIL pass pass pass recursive arith: short circuit &&, ||
detailsdetailsdetailsdetails
3pass N-I BUG pass pass pass FAIL pass pass pass recursive arith: short circuit ?:
detailsdetailsdetails
4pass N-I BUG BUG pass pass FAIL pass pass pass recursive arith: side effects
detailsdetailsdetailsdetails
5pass N-I N-I pass N-I FAIL FAIL pass pass pass recursive arith: recursion
detailsdetailsdetailsdetailsdetails
6pass N-I N-I pass pass pass FAIL pass pass pass recursive arith: array elements
detailsdetailsdetails
7pass pass pass pass pass pass FAIL pass pass pass dynamic arith varname: assign
details
8pass pass pass pass pass pass FAIL pass pass pass dynamic arith varname: read
details
9pass pass pass pass pass pass FAIL pass pass pass dynamic arith varname: copy/add
details
10pass N-I N-I N-I N-I FAIL FAIL FAIL pass pass is-array with ${var@a}
detailsdetailsdetailsdetailsdetailsdetailsdetails
11pass N-I N-I BUG pass pass FAIL pass pass pass Sparse array with big index
detailsdetailsdetailsdetails
12pass N-I N-I BUG N-I FAIL FAIL FAIL pass pass shift unshift reverse
detailsdetailsdetailsdetailsdetailsdetailsdetails
13pass N-I N-I N-I N-I FAIL FAIL pass FAIL pass shopt -u expand_aliases and eval
detailsdetailsdetailsdetailsdetailsdetailsdetails
14pass N-I N-I pass pass pass FAIL FAIL FAIL FAIL Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails
detailsdetailsdetailsdetailsdetailsdetails
15pass N-I N-I pass pass pass FAIL FAIL pass pass Issue #1069 [40] BUG: a=declare; "$a" v=1 fails
detailsdetailsdetailsdetails
16pass pass pass pass pass pass pass pass pass pass Issue #1069 [49] BUG: \return 0 does not work
17pass N-I N-I ok pass pass FAIL pass FAIL pass Issue #1069 [49] BUG: \return 0 does not work (other variations)
detailsdetailsdetailsdetailsdetails
18pass N-I N-I pass pass FAIL FAIL FAIL pass pass Issue #1069 [52] BUG: \builtin local v=1 fails
detailsdetailsdetailsdetailsdetails
19pass N-I N-I ok pass pass FAIL pass FAIL FAIL Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails
detailsdetailsdetailsdetailsdetailsdetails
20pass FAIL N-I N-I ok FAIL FAIL pass FAIL FAIL Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
21ok ok ok ok ok FAIL FAIL FAIL FAIL pass Issue #1069 [56] BUG: declare -p unset does not print any error message
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
22pass pass pass pass pass pass FAIL FAIL pass pass Issue #1069 [57] BUG: variable v is invisible after IFS= eval 'local v=...'
detailsdetails
23pass pass pass pass pass pass pass FAIL FAIL pass Issue #1069 [57] - Variable v should be visible after IFS= eval 'local v=...'
detailsdetails
24pass N-I N-I N-I pass pass FAIL pass pass FAIL Issue #1069 [59] N-I: arr=s should set RHS to arr[0]
detailsdetailsdetailsdetailsdetails
25pass FAIL N-I N-I ok FAIL FAIL pass pass FAIL Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc
detailsdetailsdetailsdetailsdetailsdetailsdetails
150 passed, 9 OK, 40 not implemented, 7 BUG, 54 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

dash0 recursive arith: one level

stdout:
stderr: 
dash: 2: Illegal number: b=123
toysh0 recursive arith: one level

[toysh stdout] Expected '123\n' Got '0\n'

stdout:
0
stderr:
dash1 recursive arith: two levels

stdout:
stderr: 
dash: 2: Illegal number: b=c
toysh1 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
dash2 recursive arith: short circuit &&, ||

stdout:
1:0
stderr:
dash: 3: Illegal number: b=123
ash2 recursive arith: short circuit &&, ||

stdout:
1:123
1:123
0:321
1:321
stderr:
mksh2 recursive arith: short circuit &&, ||

stdout:
1:123
1:123
0:321
1:321
stderr:
toysh2 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:0
stderr:
dash3 recursive arith: short circuit ?:

stdout:
stderr: 
dash: 2: Illegal number: a=123
ash3 recursive arith: short circuit ?:

stdout:
123:321
321:321
stderr:
toysh3 recursive arith: short circuit ?:

[toysh stdout] Expected '123:123\n321:321\n' Got '0:0\n0:0\n'

stdout:
0:0
0:0
stderr:
dash4 recursive arith: side effects

stdout:
stderr: 
dash: 2: Illegal number: b=c
ash4 recursive arith: side effects

stdout:
0:123
stderr:
zsh4 recursive arith: side effects

stdout:
0:123
stderr:
toysh4 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
dash5 recursive arith: recursion

stdout:
stderr: 
dash: 2: Illegal number: i<=100&&(s+=i,i++,loop)
ash5 recursive arith: recursion

stdout:
stderr: 
ash: expression recursion loop detected
mksh5 recursive arith: recursion

stdout:
stderr: 
mksh: <stdin>[2]: i<=100&&(s+=i,i++,loop): expression recurses on parameter 'loop'
ksh5 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'
toysh5 recursive arith: recursion

[toysh stdout] Expected '5050\n' Got ''
[toysh status] Expected 0 Got -11

stdout:
stderr: 
dash6 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]"
ash6 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
toysh6 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
toysh7 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=0
stderr:
toysh8 dynamic arith varname: read

[toysh stdout] Expected 'x=12 y=34\n' Got 'x=12 y=0\n'

stdout:
x=12 y=0
stderr:
toysh9 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=20
stderr:
sh: shopt: No such file or directory
dash10 is-array with ${var@a}

stdout:
stderr: 
ash10 is-array with ${var@a}

stdout:
stderr: 
zsh10 is-array with ${var@a}

stdout:
stderr: 
ble/is-array: bad substitution
mksh10 is-array with ${var@a}

stdout:
stderr: 
ksh10 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 127
stderr:
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
toysh10 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
sush10 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 127
stderr:
/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
dash11 Sparse array with big index

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash11 Sparse array with big index

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh11 Sparse array with big index

stdout:
len=1048576
stderr:
toysh11 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: [@]}
dash12 shift unshift reverse

stdout:
stderr: 
dash: 4: function: not found
dash: 5: builtin: not found
dash: 6: Syntax error: "}" unexpected
ash12 shift unshift reverse

stdout:
stderr: 
zsh12 shift unshift reverse

stdout:
1 2 3 4 5 6
2 3 4 5 6
4 5 6
---
99 4 5 6
---
5 4 99
stderr:
(eval):4: a: assignment to invalid subscript range
mksh12 shift unshift reverse

stdout:
stderr: 
ksh12 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
toysh12 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
sush12 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 6
stderr:
/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
dash13 shopt -u expand_aliases and eval

stdout:
stderr: 
ash13 shopt -u expand_aliases and eval

stdout:
stderr: 
zsh13 shopt -u expand_aliases and eval

stdout:
stderr: 
mksh13 shopt -u expand_aliases and eval

stdout:
stderr: 
ksh13 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
toysh13 shopt -u expand_aliases and eval

[toysh stdout] Expected 'hello\n' Got ''
[toysh status] Expected 0 Got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
brush13 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'.

dash14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails

stdout:
stderr: 
ash14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails

stdout:
stderr: 
toysh14 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
sush14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails

[sush stdout] Expected 'v=1\n' Got 'v=x\n'

stdout:
v=x
stderr:
brush14 Issue #1069 [40] BUG: a=(declare v); "${a[@]}" fails

[brush stdout] Expected 'v=1\n' Got 'v=x\n'

stdout:
v=x
stderr:
osh14 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/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/home/andy/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/home/andy/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/home/andy/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/andy/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin/\'\nPPID=750373\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/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/home/andy/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/home/andy/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/home/andy/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/andy/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/andy/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/andy/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/andy/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/home/andy/git/oils-for-unix/oils/../oil_DEPS/spec-bin:/home/andy/wedge/oils-for-unix.org/pkg/souffle/2.4.1/bin:/wedge/oils-for-unix.org/pkg/uftrace/0.13/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/bloaty/1.1:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/andy/bin:/wedge/oils-for-unix.org/pkg/python2/2.7.18/bin/'
PPID=750373
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:
dash15 Issue #1069 [40] BUG: a=declare; "$a" v=1 fails

stdout:
stderr: 
ash15 Issue #1069 [40] BUG: a=declare; "$a" v=1 fails

stdout:
stderr: 
toysh15 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
sush15 Issue #1069 [40] BUG: a=declare; "$a" v=1 fails

[sush stdout] Expected 'v=1\n' Got 'v=x\n'

stdout:
v=x
stderr:
dash17 Issue #1069 [49] BUG: \return 0 does not work (other variations)

stdout:
unexpected
status=0
unexpected
status=0
status=3
stderr:
dash: 1: builtin: not found
dash: 2: builtin: not found
ash17 Issue #1069 [49] BUG: \return 0 does not work (other variations)

stdout:
unexpected
status=0
unexpected
status=0
status=3
stderr:
ash: builtin: not found
ash: builtin: not found
zsh17 Issue #1069 [49] BUG: \return 0 does not work (other variations)

stdout:
status=3
status=3
unexpected
status=0
stderr:
f4: command not found: return
toysh17 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=0
stderr:
sh: builtin: No such file or directory
sh: builtin: No such file or directory
sh: command: No such file or directory
brush17 Issue #1069 [49] BUG: \return 0 does not work (other variations)

[brush stdout] Expected 'status=3\nstatus=3\nstatus=3\n' Got 'status=3\nstatus=3\n'
[brush status] Expected 0 Got -6

stdout:
status=3
status=3
stderr:
Well, this is embarrassing.

brush had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-ac84ec09-790a-43f1-b540-9458c8bf1b99.toml". Submit an issue or email with the subject of "brush Crash Report" and include the report as an attachment.


To submit the crash report:

please post a GitHub issue at https://github.com/reubeno/brush/issues/new

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
dash18 Issue #1069 [52] BUG: \builtin local v=1 fails

stdout:
stderr: 
ash18 Issue #1069 [52] BUG: \builtin local v=1 fails

stdout:
stderr: 
ksh18 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=x
stderr:
E: ksh: <stdin>[7]: builtin: local: not found
toysh18 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
sush18 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=x
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: builtin: local: not a shell builtin
dash19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails

stdout:
stderr: 
ash19 Issue #1069 [53] BUG: a[1 + 1]=2, etc. fails

stdout:
stderr: 
zsh19 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]=x
stderr:
zsh: bad pattern: a[5
zsh: bad pattern: a[1
zsh: bad pattern: a[1
toysh19 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
brush19 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]=x
stderr:
a[5: command not found
3]=hello: command not found
a[1: command not found
a[1: command not found
2]=hello: command not found
osh19 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]=x
stderr:
  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)
  a[5&3]=hello
  ^~
[ eval arg at line 5 of [ stdin ] ]:1

  eval 'a[5&3]=hello'
  ^~~~
[ 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
      ^
[ eval arg at line 13 of [ stdin ] ]:1

  eval 'a[1|2]=hello'
  ^~~~
[ stdin ]:13: Command '2]=hello' not found (OILS-ERR-100)
  a[1|2]=hello
  ^~
[ eval arg at line 13 of [ stdin ] ]:1

  eval 'a[1|2]=hello'
  ^~~~
[ stdin ]:13: Command 'a[1' not found (OILS-ERR-100)
dash20 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 ")")
ash20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)

stdout:
stderr: 
zsh20 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)

stdout:
stderr: 
mksh20 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]=66
stderr:
ksh20 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]=66
stderr:
toysh20 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
brush20 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:
a[1: command not found
a[3: command not found
4]=8: command not found
ERROR main: syntax error near token `*3]=9' (line 1 col 8)
declare: a: not found
a[3: command not found
osh20 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)
bash21 Issue #1069 [56] BUG: declare -p unset does not print any error message

stdout:
stderr: 
bash: line 1: typeset: nonexistent: not found
dash21 Issue #1069 [56] BUG: declare -p unset does not print any error message

stdout:
stderr: 
dash: 1: typeset: not found
ash21 Issue #1069 [56] BUG: declare -p unset does not print any error message

stdout:
stderr: 
ash: typeset: not found
zsh21 Issue #1069 [56] BUG: declare -p unset does not print any error message

stdout:
stderr: 
typeset: no such variable: nonexistent
mksh21 Issue #1069 [56] BUG: declare -p unset does not print any error message

stdout:
stderr: 
ksh21 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: 
toysh21 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
sush21 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
brush21 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
toysh22 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: 
sush22 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:x
stderr:
sush23 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: 
brush23 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 o
stderr:
dash24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0]

stdout:
stderr: 
ash24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0]

stdout:
stderr: 
zsh24 Issue #1069 [59] N-I: arr=s should set RHS to arr[0]

stdout:
['v']
stderr:
toysh24 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
osh24 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:
dash25 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
ash25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

stdout:
stderr: 
zsh25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

stdout:
stderr: 
mksh25 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]=3
stderr:
mksh: <stdin>[7]: syntax error: '(' unexpected
ksh25 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]=3
stderr:
E: ksh: <stdin>[7]: syntax error: unexpected '('
toysh25 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
osh25 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=99
stderr: