Results for for-expr.test.sh

statusbashmkshkshtoyshsushbrushosh
pass 8000349
FAIL 1999650
total9999999
casebashmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL FAIL FAIL pass pass C-style for loop
detailsdetailsdetailsdetails
1pass FAIL FAIL FAIL FAIL FAIL pass For loop with and without semicolon
detailsdetailsdetailsdetailsdetails
2pass FAIL FAIL FAIL FAIL FAIL pass Accepts { } syntax too
detailsdetailsdetailsdetailsdetails
3pass FAIL FAIL FAIL pass pass pass Empty init
detailsdetailsdetails
4pass FAIL FAIL FAIL FAIL FAIL pass Empty init and cond
detailsdetailsdetailsdetailsdetails
5pass FAIL FAIL FAIL FAIL FAIL pass Infinite loop with ((;;))
detailsdetailsdetailsdetailsdetails
6FAIL FAIL FAIL FAIL FAIL pass pass Arith lexer mode
detailsdetailsdetailsdetailsdetails
7pass FAIL FAIL FAIL pass pass pass Integers near 31, 32, 62 bits
detailsdetailsdetails
8pass FAIL FAIL FAIL pass FAIL pass Condition that's greater than 32 bits
detailsdetailsdetailsdetails
24 passed, 0 OK, 0 not implemented, 0 BUG, 39 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

mksh0 C-style for loop

[mksh stdout] Expected '1\n2\n4\n5\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: '((' unexpected
ksh0 C-style for loop

[ksh stdout] Expected '1\n2\n4\n5\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: syntax error: unexpected '(('
toysh0 C-style for loop

[toysh stdout] Expected '1\n2\n4\n5\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: ((a=1; a <= n ; a++))
sush0 C-style for loop

[sush stdout] Expected '1\n2\n4\n5\n', got '1\n2\n'

stdout:
1
2
stderr:
mksh1 For loop with and without semicolon

[mksh stdout] Expected '1\n2\n3\n1\n2\n3\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '((' unexpected
ksh1 For loop with and without semicolon

[ksh stdout] Expected '1\n2\n3\n1\n2\n3\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '(('
toysh1 For loop with and without semicolon

[toysh stdout] Expected '1\n2\n3\n1\n2\n3\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: ;
sush1 For loop with and without semicolon

[sush stdout] Expected '1\n2\n3\n1\n2\n3\n', got '1\n2\n3\n4\n'
[sush status] Expected 0, got 2

stdout:
1
2
3
4
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: Unexpected token: do

/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: Unexpected token: done

brush1 For loop with and without semicolon

[brush stdout] Expected '1\n2\n3\n1\n2\n3\n', got '1\n2\n3\n4\n'
[brush status] Expected 0, got 2

stdout:
1
2
3
4
stderr:
ERROR main: syntax error near token `do' (line 1 col 26)
ERROR main: syntax error near token `
' (line 1 col 5)
mksh2 Accepts { } syntax too

[mksh stdout] Expected '1\n2\n3\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '((' unexpected
ksh2 Accepts { } syntax too

[ksh stdout] Expected '1\n2\n3\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '(('
toysh2 Accepts { } syntax too

[toysh stdout] Expected '1\n2\n3\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: {
sush2 Accepts { } syntax too

[sush stdout] Expected '1\n2\n3\n', got '\n'
[sush status] Expected 0, got 2

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: Unexpected token: {

/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: }

brush2 Accepts { } syntax too

[brush stdout] Expected '1\n2\n3\n', got '\n'
[brush status] Expected 0, got 2

stdout:
stderr: 
ERROR main: syntax error near token `{' (line 1 col 26)
ERROR main: syntax error near token `
' (line 1 col 2)
mksh3 Empty init

[mksh stdout] Expected '1\n2\n3\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: '((' unexpected
ksh3 Empty init

[ksh stdout] Expected '1\n2\n3\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: syntax error: unexpected '(('
toysh3 Empty init

[toysh stdout] Expected '1\n2\n3\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: ;
mksh4 Empty init and cond

[mksh stdout] Expected '1\n2\n3\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: '((' unexpected
ksh4 Empty init and cond

[ksh stdout] Expected '1\n2\n3\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: syntax error: unexpected '(('
toysh4 Empty init and cond

[toysh stdout] Expected '1\n2\n3\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: ;
sush4 Empty init and cond

[sush stdout] Expected '1\n2\n3\n', got ''

stdout:
stderr: 
brush4 Empty init and cond

[brush stdout] Expected '1\n2\n3\n', got ''

stdout:
stderr: 
mksh5 Infinite loop with ((;;))

[mksh stdout] Expected '1\n2\n3\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: '((' unexpected
ksh5 Infinite loop with ((;;))

[ksh stdout] Expected '1\n2\n3\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: syntax error: unexpected '(('
toysh5 Infinite loop with ((;;))

[toysh stdout] Expected '1\n2\n3\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: ;
sush5 Infinite loop with ((;;))

[sush stdout] Expected '1\n2\n3\n', got ''

stdout:
stderr: 
brush5 Infinite loop with ((;;))

[brush stdout] Expected '1\n2\n3\n', got ''

stdout:
stderr: 
bash6 Arith lexer mode

[bash stdout] Expected '3\n4\n3\n4\n3\n4\n3\n4\n', got '3\n4\n3\n4\n'

stdout:
3
4
3
4
stderr:
bash: line 1: ((: i = '3': syntax error: operand expected (error token is "'3'")
bash: line 3: ((: i = '3': syntax error: operand expected (error token is "'3'")
mksh6 Arith lexer mode

[mksh stdout] Expected '3\n4\n3\n4\n3\n4\n3\n4\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '((' unexpected
ksh6 Arith lexer mode

[ksh stdout] Expected '3\n4\n3\n4\n3\n4\n3\n4\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '(('
toysh6 Arith lexer mode

[toysh stdout] Expected '3\n4\n3\n4\n3\n4\n3\n4\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: ;
sush6 Arith lexer mode

[sush stdout] Expected '3\n4\n3\n4\n3\n4\n3\n4\n', got '3\n4\n3\n4\n'

stdout:
3
4
3
4
stderr:
mksh7 Integers near 31, 32, 62 bits

[mksh stdout] Expected '2147483646\n2147483647\n2147483648\n2147483649\n---\n4294967294\n4294967295\n4294967296\n4294967297\n---\n4611686018427387902\n4611686018427387903\n4611686018427387904\n4611686018427387905\n---\n' Got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[6]: syntax error: '((' unexpected
ksh7 Integers near 31, 32, 62 bits

[ksh stdout] Expected '2147483646\n2147483647\n2147483648\n2147483649\n---\n4294967294\n4294967295\n4294967296\n4294967297\n---\n4611686018427387902\n4611686018427387903\n4611686018427387904\n4611686018427387905\n---\n' Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[6]: syntax error: unexpected '(('
toysh7 Integers near 31, 32, 62 bits

[toysh stdout] Expected '2147483646\n2147483647\n2147483648\n2147483649\n---\n4294967294\n4294967295\n4294967296\n4294967297\n---\n4611686018427387902\n4611686018427387903\n4611686018427387904\n4611686018427387905\n---\n' Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: ;
mksh8 Condition that's greater than 32 bits

[mksh stdout] Expected '4294967296\n4294967297\n4294967298\n4294967299\n4294967300\n' Got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[3]: syntax error: '((' unexpected
ksh8 Condition that's greater than 32 bits

[ksh stdout] Expected '4294967296\n4294967297\n4294967298\n4294967299\n4294967300\n' Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[3]: syntax error: unexpected '(('
toysh8 Condition that's greater than 32 bits

[toysh stdout] Expected '4294967296\n4294967297\n4294967298\n4294967299\n4294967300\n' Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 3: sh: syntax error: ;
brush8 Condition that's greater than 32 bits

[brush stdout] Expected '4294967296\n4294967297\n4294967298\n4294967299\n4294967300\n' Got ''
[brush status] Expected 0, got 2

stdout:
stderr: 
ERROR main: unterminated here document sequence; tag(s) [32] found at: [line 1 col 18] (detected near line 9 column 1)