Results for func-parsing.test.sh

statusdashbashmkshoshosh_ALT
pass 111291414
ok 43511
BUG 00100
total1515151515
casedashbashmkshoshosh_ALTdescription
0pass pass BUG pass pass Incomplete Function
details
1pass pass ok pass pass Incomplete Function 2
details
2pass pass ok pass pass Bad function
details
3pass ok pass ok ok Unbraced function body.
detailsdetailsdetails
4pass pass pass pass pass Function with spaces, to see if ( and ) are separate tokens.
5pass pass pass pass pass subshell function
6pass pass pass pass pass Hard case, function with } token in it
7ok pass pass pass pass . in function name
details
8ok pass ok pass pass = in function name
detailsdetails
9pass ok ok pass pass Function name with $
detailsdetails
10pass ok ok pass pass Function name with command sub
detailsdetails
11ok pass pass pass pass Function name with !
details
12ok pass pass pass pass Function name with -
details
13pass pass pass pass pass Break after ) is OK.
14pass pass pass pass pass Nested definition
60 passed, 14 OK, 0 not implemented, 1 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

mksh0 Incomplete Function

stdout:
stderr: 
mksh1 Incomplete Function 2

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: '{' unmatched
mksh2 Bad function

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: 'ls' unexpected
bash3 Unbraced function body.

stdout:
stderr: 
bash: line 1: syntax error near unexpected token `ls'
bash: line 1: `one_line() ls; one_line;'
osh3 Unbraced function body.

stdout:
stderr: 
  one_line() ls; one_line;
             ^~
[ stdin ]:1: Unexpected word while parsing compound command
osh_ALT3 Unbraced function body.

stdout:
stderr: 
  one_line() ls; one_line;
             ^~
[ stdin ]:1: Unexpected word while parsing compound command
dash7 . in function name

stdout:
stderr: 
dash: 1: Syntax error: Bad function name
dash8 = in function name

stdout:
stderr: 
dash: 1: Syntax error: Bad function name
mksh8 = in function name

stdout:
stderr: 
mksh: <stdin>[1]: func-name=ext: invalid function name
bash9 Function name with $

stdout:
stderr: 
bash: line 1: `$foo-bar': not a valid identifier
mksh9 Function name with $

stdout:
stderr: 
mksh: <stdin>[1]: $foo-bar: invalid function name
bash10 Function name with command sub

stdout:
stderr: 
bash: line 1: `foo-$(echo hi)': not a valid identifier
mksh10 Function name with command sub

stdout:
stderr: 
mksh: <stdin>[1]: foo-$(echo hi ): invalid function name
dash11 Function name with !

stdout:
stderr: 
dash: 1: Syntax error: Bad function name
dash12 Function name with -

stdout:
stderr: 
dash: 1: Syntax error: Bad function name