Results for parse-errors.test.sh

casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass Bad var sub
1pass ok ok pass pass Bad braced var sub -- not allowed
detailsdetails
2BUG BUG BUG pass pass Bad var sub caught at parse time
detailsdetailsdetails
3pass pass ok pass pass Incomplete while
details
4pass pass ok pass pass Incomplete for
details
5pass pass ok pass pass Incomplete if
details
6pass pass ok FAIL FAIL do unexpected
detailsdetailsdetails
7pass pass ok pass pass } is a parse error
details
8BUG pass ok FAIL FAIL { is its own word, needs a space
detailsdetailsdetailsdetails
9pass pass pass pass pass } on the second line
10pass BUG ok pass pass Invalid for loop variable name
detailsdetails
11pass pass pass pass pass bad var name globally isn't parsed like an assignment
12pass ok ok pass pass bad var name in export
detailsdetails
13BUG BUG BUG pass pass bad var name in local
detailsdetailsdetails
14pass pass ok FAIL FAIL misplaced parentheses are not a subshell
detailsdetailsdetails
15pass pass ok FAIL FAIL incomplete command sub
detailsdetailsdetails
16pass pass ok FAIL FAIL misplaced ;;
detailsdetailsdetails

53 passed, 14 ok, 0 known unimplemented, 8 known bugs, 5 failed, 0 skipped

Details on runs that didn't PASS

bash1 Bad braced var sub -- not allowed

stdout:
stderr: 
/bin/bash: line 1: ${%}: bad substitution
mksh1 Bad braced var sub -- not allowed

stdout:
stderr: 
/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: 
/bin/mksh: <stdin>[1]: syntax error: 'while' unmatched
mksh4 Incomplete for

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: 'newline' unexpected
mksh5 Incomplete if

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: 'if' unmatched
mksh6 do unexpected

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: 'do' unexpected
osh6 do unexpected

[osh status] Expected 2, got 0

stdout:
stderr: 
osh_ALT6 do unexpected

[osh_ALT status] Expected 2, got 0

stdout:
stderr: 
mksh7 } is a parse error

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: '}' unexpected
dash8 { is its own word, needs a space

stdout:
status=127
stderr:
/bin/dash: 1: {ls: not found
mksh8 { is its own word, needs a space

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: '}' unexpected
osh8 { is its own word, needs a space

[osh status] Expected 2, got 127

stdout:
stderr: 
Unexpected error in execvpe('{ls', ['{ls'], ...): [Errno 2] No such file or directory
osh_ALT8 { is its own word, needs a space

[osh_ALT status] Expected 2, got 127

stdout:
stderr: 
Unexpected error in execvpe('{ls', ['{ls'], ...): [Errno 2] No such file or directory
bash10 Invalid for loop variable name

stdout:
done
stderr:
/bin/bash: line 3: `i.j': not a valid identifier
mksh10 Invalid for loop variable name

stdout:
stderr: 
/bin/mksh: <stdin>[1]: for: bad identifier
bash12 bad var name in export

stdout:
stderr: 
/bin/bash: line 1: export: `FOO-BAR=foo': not a valid identifier
mksh12 bad var name in export

stdout:
stderr: 
/bin/mksh: <stdin>[1]: export: FOO-BAR=foo: is not an identifier
dash13 bad var name in local

stdout:
stderr: 
bash13 bad var name in local

stdout:
stderr: 
mksh13 bad var name in local

stdout:
stderr: 
mksh14 misplaced parentheses are not a subshell

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: '(' unexpected
osh14 misplaced parentheses are not a subshell

[osh status] Expected 2, got 127

stdout:
a
stderr:
Unexpected error in execvpe('b', ['b'], ...): [Errno 2] No such file or directory
osh_ALT14 misplaced parentheses are not a subshell

[osh_ALT status] Expected 2, got 127

stdout:
a
stderr:
Unexpected error in execvpe('b', ['b'], ...): [Errno 2] No such file or directory
mksh15 incomplete command sub

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: '(' unmatched
osh15 incomplete command sub

[osh status] Expected 2, got 0

stdout:
stderr: 
Unexpected error in execvpe('x', ['x'], ...): [Errno 2] No such file or directory
osh_ALT15 incomplete command sub

[osh_ALT status] Expected 2, got 0

stdout:
stderr: 
Unexpected error in execvpe('x', ['x'], ...): [Errno 2] No such file or directory
mksh16 misplaced ;;

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: ';;' unexpected
osh16 misplaced ;;

[osh stdout] Expected u'', got '1\n'
[osh status] Expected 2, got 0

stdout:
1
stderr:
osh_ALT16 misplaced ;;

[osh_ALT stdout] Expected u'', got '1\n'
[osh_ALT status] Expected 2, got 0

stdout:
1
stderr: