[wpkg-users] [Bug 272] Wrong exit code from *.cmd files

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Fri May 11 18:29:58 CEST 2012


http://bugzilla.wpkg.org/show_bug.cgi?id=272

Malte Starostik <malte at malte.homeip.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |malte at malte.homeip.net

--- Comment #1 from Malte Starostik <malte at malte.homeip.net>  ---
Not a WPKG bug IMHO.  Assuming your script is called test.cmd:

cmd /c test.cmd
echo %errorlevel%

will yield 0, too.
You cannot reliably return an exit code > 255 from cmd.  Return a lower code or
rewrite the script in JScript/VBScript/Powershell/whatever.

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list