68 passed, 1 OK, 5 not implemented, 1 BUG, 30 failed, 0 timeouts, 0 cases skipped
toysh | 3 (( )) [toysh stdout] Expected '1 3\n', got '0 0\n' stdout: 0 0stderr: |
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 |
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 |
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 |
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: |
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: |
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' ") |
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: |
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.3692597/11-sush/x.txt: No such file or directory |
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: |
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: |
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: |