Results for parse-errors.test.sh

statusdashbashmkshosh
pass 1919521
ok 22180
N-I 1000
BUG 2310
FAIL 0003
total24242424
casedashbashmkshoshdescription
0pass pass pass pass Bad var sub
1pass ok ok pass Bad braced var sub -- not allowed
detailsdetails
2BUG BUG BUG pass Bad var sub caught at parse time
detailsdetailsdetails
3pass pass ok pass Incomplete while
details
4pass pass ok pass Incomplete for
details
5pass pass ok pass Incomplete if
details
6pass pass ok pass do unexpected
details
7pass pass ok pass } is a parse error
details
8BUG pass ok pass { is its own word, needs a space
detailsdetails
9pass pass pass pass } on the second line
10pass BUG ok pass Invalid for loop variable name
detailsdetails
11pass pass pass pass bad var name globally isn't parsed like an assignment
12ok pass pass pass bad var name in export
details
13ok pass pass pass bad var name in local
details
14pass pass ok pass misplaced parentheses are not a subshell
details
15pass pass ok pass incomplete command sub
details
16pass pass ok pass incomplete backticks
details
17pass pass ok pass misplaced ;;
details
18N-I pass ok pass empty clause in [[
detailsdetails
19pass ok ok pass interactive parse error (regression)
detailsdetails
20pass BUG ok FAIL array literal inside array is a parse error
detailsdetailsdetails
21pass pass ok FAIL array literal inside loop is a parse error
detailsdetails
22pass pass ok FAIL array literal in case
detailsdetails
23pass pass ok pass %foo=() is parse error (regression)
details
64 passed, 22 OK, 1 not implemented, 6 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

bash1 Bad braced var sub -- not allowed

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: ${%}: bad substitution
mksh1 Bad braced var sub -- not allowed

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: ${%}: bad substitution
dash2 Bad var sub caught at parse time

stdout:
ok
stderr:
bash2 Bad var sub caught at parse time

stdout:
ok
stderr:
mksh2 Bad var sub caught at parse time

stdout:
ok
stderr:
mksh3 Incomplete while

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'while' unmatched
mksh4 Incomplete for

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'newline' unexpected
mksh5 Incomplete if

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'if' unmatched
mksh6 do unexpected

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'do' unexpected
mksh7 } is a parse error

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '}' unexpected
dash8 { is its own word, needs a space

stdout:
status=127
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: {ls: not found
mksh8 { is its own word, needs a space

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '}' unexpected
bash10 Invalid for loop variable name

stdout:
done
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 3: `i.j': not a valid identifier
mksh10 Invalid for loop variable name

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: for: bad identifier
dash12 bad var name in export

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: export: FOO-BAR: bad variable name
dash13 bad var name in local

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: FOO-BAR: bad variable name
mksh14 misplaced parentheses are not a subshell

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected
mksh15 incomplete command sub

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unmatched
mksh16 incomplete backticks

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: no closing quote
mksh17 misplaced ;;

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: ';;' unexpected
dash18 empty clause in [[

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: [[: not found
mksh18 empty clause in [[

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '||' expression expected
bash19 interactive parse error (regression)

stdout:
stderr: 
bash: syntax error near unexpected token `)'
mksh19 interactive parse error (regression)

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: syntax error: ')' unexpected
bash20 array literal inside array is a parse error

stdout:
len=0
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: syntax error near unexpected token `('
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: `a=( inside=() )'
mksh20 array literal inside array is a parse error

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected
osh20 array literal inside array is a parse error

[osh status] Expected 2, got 1

stdout:
stderr: 
  a=( inside=() )
             ^
[ stdin ]:1: fatal: Unexpected array literal
mksh21 array literal inside loop is a parse error

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: syntax error: '(' unexpected
osh21 array literal inside loop is a parse error

[osh status] Expected 2, got 0

stdout:
stderr: 
mksh22 array literal in case

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: syntax error: '(' unexpected
osh22 array literal in case

[osh status] Expected 2, got 0

stdout:
stderr: 
mksh23 %foo=() is parse error (regression)

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: %foo=: invalid function name