For long time our BAT files couldn't identify options reliably. With introduction of some BAT language extensions one can check for the leading '-' as following: --- gs/lib/ps2pdf.bat (revision 11725) +++ gs/lib/ps2pdf.bat (working copy) @@ -16,5 +16,9 @@ echo %1 >> "%TEMP%\_.at" shift :bot -if not %3/==/ goto top +rem Search for leading '-' +echo %1 | findstr /b /C:- >nul 2>&1 +if ERRORLEVEL 1 goto proc +goto top +:proc call "%LIBDIR%ps2pdfxx.bat" %1 %2
Assigning to Alex -- he seems to have a handle on Windows batch files.
This and similar patches to ps2pdf12.bat, ps2pdf13.bat, ps2pdf14.bat have been committed as a rev. 11743. Other batch files don't have a single-argument form and work just fine by counting the arguments.
*** Bug 689682 has been marked as a duplicate of this bug. ***