74 passed, 2 OK, 11 not implemented, 3 BUG, 60 failed, 0 timeouts, 0 cases skipped
dash | 0 (( )) result [dash stdout] Expected 'True\nFalse\n', got 'False\n' stdout: Falsestderr: dash: 1: 1: not found dash: 2: 0: not found |
ash | 0 (( )) result [ash stdout] Expected 'True\nFalse\n', got 'False\n' stdout: Falsestderr: ash: 1: not found ash: 0: not found |
dash | 1 negative number is true [dash stdout] Expected 'True\n', got '' [dash status] Expected 0, got 127 stdout: stderr: dash: 1: -1: not found |
ash | 1 negative number is true [ash stdout] Expected 'True\n', got '' [ash status] Expected 0, got 127 stdout: stderr: ash: -1: not found |
dash | 2 (( )) in if statement [dash stdout] Expected 'True\n', got '' stdout: stderr: dash: 1: 3: not found |
ash | 2 (( )) in if statement [ash stdout] Expected 'True\n', got '' stdout: stderr: ash: 3: not found |
dash | 3 (( )) [dash stdout] Expected '1 3\n', got '\n' stdout: stderr: dash: 1: x: not found dash: 2: y: not found |
ash | 3 (( )) [ash stdout] Expected '1 3\n', got '\n' stdout: stderr: ash: x: not found ash: y: not found |
toysh | 3 (( )) [toysh stdout] Expected '1 3\n', got '0 0\n' stdout: 0 0stderr: |
dash | 4 (( )) with arrays [dash stdout] Expected '15\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 4 (( )) with arrays [ash stdout] Expected '15\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 4 (( )) with arrays stdout: 9stderr: |
toysh | 4 (( )) with arrays [toysh stdout] Expected '15\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: 4 |
dash | 5 (( )) with error [dash stdout] Expected 'false\ntrue\ntrue\n0\n', got 'false\n0\n' stdout: false 0stderr: dash: 1: a: not found dash: 2: b: not found dash: 3: c: not found |
ash | 5 (( )) with error [ash stdout] Expected 'false\ntrue\ntrue\n0\n', got 'false\n0\n' stdout: false 0stderr: ash: a: not found ash: b: not found ash: c: not found |
toysh | 5 (( )) with error [toysh stdout] Expected 'false\ntrue\ntrue\n0\n', got 'false\n0\n' stdout: false 0stderr: main: line 1: sh: =0 main: line 1: sh: bad math: a = 0 @ 7 |
dash | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer [dash stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: shopt: not found dash: 4: typeset: not found dash: 5: a[K]: not found dash: 7: Bad substitution |
ash | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer [ash stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: shopt: not found ash: typeset: not found ash: a[K]: not found ash: syntax error: bad substitution |
zsh | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer stdout: stderr: zsh: command not found: shopt zsh: a: assignment to invalid subscript range zsh: no matches found: a["key"]= |
toysh | 6 bash and mksh: V in (( a[K] = V )) gets coerced to integer [toysh stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got 'a["key"]=\nkeys =\nvalues =\n' stdout: a["key"]= keys = values =stderr: sh: shopt: No such file or directory sh: typeset: No such file or directory main: line 5: sh: bad math: a[K] = V @ 2 |
dash | 7 bash: K in (( A[K] = V )) is a constant string [dash stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: typeset: not found dash: 4: A[K]: not found dash: 6: Bad substitution |
ash | 7 bash: K in (( A[K] = V )) is a constant string [ash stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: typeset: not found ash: A[K]: not found ash: syntax error: bad substitution |
zsh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: zsh: no matches found: A[5]= |
mksh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: mksh: <stdin>[3]: typeset: -A: unknown option mksh: <stdin>[6]: "5": unexpected '"' |
ksh | 7 bash: K in (( A[K] = V )) is a constant string [ksh stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[3]: typeset: -A: unknown option W: ksh: <stdin>[6]: "5": unexpected '"' |
toysh | 7 bash: K in (( A[K] = V )) is a constant string [toysh stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got 'A[5]=\nkeys =\nvalues =\n' stdout: A[5]= keys = values =stderr: sh: typeset: No such file or directory main: line 4: sh: bad math: A[K] = V @ 2 |
brush | 7 bash: K in (( A[K] = V )) is a constant string [brush stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got 'A[5]=42\nkeys = 5\nvalues = 42\n' stdout: A[5]=42 keys = 5 values = 42stderr: |
osh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V )) ^ [ stdin ]:4: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101) |
bash | 8 BUG: (( V = A[K] )) doesn't retrieve the right value stdout: V=0stderr: |
dash | 8 BUG: (( V = A[K] )) doesn't retrieve the right value [dash stdout] Expected u'', got 'V=42\n' [dash status] Expected 1, got 0 stdout: V=42stderr: dash: 1: typeset: not found dash: 4: A[5]=42: not found dash: 5: A[K]=oops: not found dash: 6: A[K]=oops2: not found dash: 8: V: not found |
ash | 8 BUG: (( V = A[K] )) doesn't retrieve the right value [ash stdout] Expected u'', got 'V=42\n' [ash status] Expected 1, got 0 stdout: V=42stderr: ash: typeset: not found ash: A[5]=42: not found ash: A[K]=oops: not found ash: A[K]=oops2: not found ash: V: not found |
zsh | 8 BUG: (( V = A[K] )) doesn't retrieve the right value stdout: V=0stderr: |
toysh | 8 BUG: (( V = A[K] )) doesn't retrieve the right value [toysh stdout] Expected u'', got 'V=42\n' [toysh status] Expected 1, got 0 stdout: V=42stderr: sh: typeset: No such file or directory sh: A[5]=42: No such file or directory sh: A[K]=oops: No such file or directory sh: A[K]=oops2: No such file or directory main: line 8: sh: =0 main: line 8: sh: bad math: V = A[K] @ 6 |
sush | 8 BUG: (( V = A[K] )) doesn't retrieve the right value [sush stdout] Expected u'', got 'V=0\n' [sush status] Expected 1, got 0 stdout: V=0stderr: |
brush | 8 BUG: (( V = A[K] )) doesn't retrieve the right value [brush stdout] Expected u'', got 'V=42\n' [brush status] Expected 1, got 0 stdout: V=42stderr: |
dash | 9 bash: V in (( A["K"] = V )) gets coerced to integer [dash stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got '' [dash status] Expected 0, got 1 stdout: stderr: dash: 1: shopt: not found dash: 4: typeset: not found |
ash | 9 bash: V in (( A["K"] = V )) gets coerced to integer [ash stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got '' [ash status] Expected 0, got 1 stdout: stderr: ash: shopt: not found ash: typeset: not found |
zsh | 9 bash: V in (( A["K"] = V )) gets coerced to integer stdout: stderr: zsh: command not found: shopt zsh: no matches found: A["key"]= |
mksh | 9 bash: V in (( A["K"] = V )) gets coerced to integer stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[4]: typeset: -A: unknown option |
ksh | 9 bash: V in (( A["K"] = V )) gets coerced to integer [ksh stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: shopt: inaccessible or not found E: ksh: <stdin>[4]: typeset: -A: unknown option |
toysh | 9 bash: V in (( A["K"] = V )) gets coerced to integer [toysh stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got '' [toysh status] Expected 0, got 1 stdout: stderr: sh: shopt: No such file or directory sh: typeset: No such file or directory |
brush | 9 bash: V in (( A["K"] = V )) gets coerced to integer [brush stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got 'A["key"]=\nkeys = 0\nvalues = 0\n' stdout: A["key"]= keys = 0 values = 0stderr: shopt: strict_arith: invalid shell option name |
bash | 10 literal strings inside (( )) [bash stdout] Expected '42 0\n', got '42\n' stdout: 42stderr: bash: line 4: ((: A['y'] = 'y' : syntax error: operand expected (error token is "'y' ") |
dash | 10 literal strings inside (( )) [dash stdout] Expected '42 0\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: declare: not found dash: 2: A[x]=42: not found dash: 3: x: not found dash: 4: A[y]: not found dash: 5: Bad substitution |
ash | 10 literal strings inside (( )) [ash stdout] Expected '42 0\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: declare: not found ash: A[x]=42: not found ash: x: not found ash: A[y]: not found ash: syntax error: bad substitution |
zsh | 10 literal strings inside (( )) stdout: 42stderr: zsh: bad math expression: operand expected at `'y' ' |
mksh | 10 literal strings inside (( )) stdout: 0stderr: mksh: <stdin>[1]: declare: not found |
ksh | 10 literal strings inside (( )) [ksh stdout] Expected '42 0\n', got '0\n' stdout: 0stderr: E: ksh: <stdin>[1]: declare: inaccessible or not found |
toysh | 10 literal strings inside (( )) [toysh stdout] Expected '42 0\n', got '\n' stdout: stderr: sh: A[x]=42: No such file or directory main: line 3: sh: =0 main: line 3: sh: bad math: x = A[x] @ 6 main: line 4: sh: bad math: A[y] = y @ 2 |
sush | 10 literal strings inside (( )) [sush stdout] Expected '42 0\n', got '' [sush status] Expected 0, got 1 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'x': syntax error: operand expected (error token is "'x'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: ((: x = A['x'] : syntax error: operand expected (error token is "'x'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: ((: A['y'] = 'y' : syntax error: operand expected (error token is "'y'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: 'y': syntax error: operand expected (error token is "'y'") |
brush | 10 literal strings inside (( )) [brush stdout] Expected '42 0\n', got '0\n' stdout: 0stderr: |
dash | 11 (( )) with redirect [dash stdout] Expected '52\n--\nSTDERR\n', got '\n--\nSTDERR\ndash: 1: a: not found\n' stdout: -- STDERR dash: 1: a: not foundstderr: |
ash | 11 (( )) with redirect [ash stdout] Expected '52\n--\nSTDERR\n', got '\n--\nSTDERR\nash: a: not found\n' stdout: -- STDERR ash: a: not foundstderr: |
toysh | 11 (( )) with redirect [toysh stdout] Expected '52\n--\nSTDERR\n', got '0\n\nSTDERR\n' stdout: 0 STDERRstderr: |
sush | 11 (( )) with redirect [sush stdout] Expected '52\n--\nSTDERR\n', got '\n--\n' [sush status] Expected 0, got 1 stdout: --stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: Unexpected token: 2>$TMP/x.txt cat: /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/dparen.test.sh/11-sush/x.txt: No such file or directory |
dash | 12 Assigning whole raray (( b = a )) [dash stdout] Expected '4 5 6\n4\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 12 Assigning whole raray (( b = a )) [ash stdout] Expected '4 5 6\n4\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 12 Assigning whole raray (( b = a )) stdout: 4 5 6stderr: zsh: bad math expression: operator expected at `5 6' |
toysh | 12 Assigning whole raray (( b = a )) [toysh stdout] Expected '4 5 6\n4\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: 4 |
sush | 12 Assigning whole raray (( b = a )) [sush stdout] Expected '4 5 6\n4\n', got '4 5 6\n\n' stdout: 4 5 6stderr: |
dash | 13 set associative array [dash stdout] Expected '42\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 13 set associative array [ash stdout] Expected '42\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 13 set associative array stdout: 0stderr: zsh: no matches found: [foo]=bar |
mksh | 13 set associative array stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 13 set associative array [ksh stdout] Expected '42\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 13 set associative array [toysh stdout] Expected '42\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
sush | 13 set associative array [sush stdout] Expected '42\n', got '\n' stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'foo': syntax error: operand expected (error token is "'foo'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'spam': syntax error: operand expected (error token is "'spam'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: ((: x = A['spam'] : syntax error: operand expected (error token is "'spam'") |
brush | 13 set associative array [brush stdout] Expected '42\n', got '0\n' stdout: 0stderr: |
dash | 14 Example of incrementing associative array entry with var key (ble.sh) [dash stdout] Expected 'foo=44\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 14 Example of incrementing associative array entry with var key (ble.sh) [ash stdout] Expected 'foo=44\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 14 Example of incrementing associative array entry with var key (ble.sh) stdout: stderr: zsh: no matches found: [foo]=42 zsh: A: assignment to invalid subscript range zsh: bad math expression: operand expected at `'foo'' |
mksh | 14 Example of incrementing associative array entry with var key (ble.sh) stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 14 Example of incrementing associative array entry with var key (ble.sh) [ksh stdout] Expected 'foo=44\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 14 Example of incrementing associative array entry with var key (ble.sh) [toysh stdout] Expected 'foo=44\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
sush | 14 Example of incrementing associative array entry with var key (ble.sh) [sush stdout] Expected 'foo=44\n', got '' [sush status] Expected 0, got 1 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'foo': syntax error: operand expected (error token is "'foo'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: 'foo': syntax error: operand expected (error token is "'foo'") |
brush | 14 Example of incrementing associative array entry with var key (ble.sh) [brush stdout] Expected 'foo=44\n', got 'foo=42\n' stdout: foo=42stderr: |