To avoid the mysterious test failures on Windows, instead rely on the error code returned on failure. Fixes #9716 Closes #9723
Script based on the #9474 pull-request logic, but implemented in perl. Updated docs/URL-SYNTAX.md accordingly. Suggested-by: Dan Fandrich Closes #9697