empty-bodies () { sh-spec spec/empty-bodies.test.sh "${REF_SHELLS[@]}" $ZSH $OSH_LIST "$@" } empty-bodies: spec test case results

Results for empty-bodies.test.sh

statusdashbashmkshzshosh
pass 11233
ok 22100
total33333
casedashbashmkshzshoshdescription
0ok ok pass pass pass Empty do/done
detailsdetails
1pass pass pass pass pass Empty case/esac
2ok ok ok pass pass Empty then/fi
detailsdetailsdetails
10 passed, 5 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 Empty do/done

stdout:
stderr: 
dash: 2: Syntax error: "done" unexpected
bash0 Empty do/done

stdout:
stderr: 
bash: line 2: syntax error near unexpected token `done'
bash: line 2: `done'
dash2 Empty then/fi

stdout:
stderr: 
dash: 2: Syntax error: "fi" unexpected
bash2 Empty then/fi

stdout:
stderr: 
bash: line 2: syntax error near unexpected token `fi'
bash: line 2: `fi'
mksh2 Empty then/fi

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: 'fi' unexpected