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 FAIL FAIL bad var name in export
detailsdetailsdetailsdetails
13BUG BUG BUG pass pass bad var name in local
detailsdetailsdetails
14pass pass ok FAIL FAIL misplaced parentheses are not a subshell
detailsdetailsdetails

47 passed, 12 ok, 0 known unimplemented, 8 known bugs, 4 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
osh12 bad var name in export

[osh status] Expected 2, got 0

stdout:
stderr: 
osh_ALT12 bad var name in export

[osh_ALT status] Expected 2, got 0

stdout:
stderr: 
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