Results for parse-errors.test.sh

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

89 passed, 16 ok, 1 known unimplemented, 8 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

bash1 Bad braced var sub -- not allowed

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

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

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

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

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

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

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

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

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

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

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

stdout:
stderr: 
_tmp/spec-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: 
_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected
mksh15 incomplete command sub

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

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

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

stdout:
stderr: 
_tmp/spec-bin/dash: 1: [[: not found
mksh18 empty clause in [[

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '||' expression expected