General

Profile

rutsky (Vladimir Rutsky)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

03/14/2013

08:26 PM Ruby Feature #8083: Exit status is limited to one-byte values which is invalid for Windows
=begin
I cannot find exact definition of possible exit codes on Windows, but here is ExitProcess function declaration [1]:
VOID WINAPI ExitProcess(
_In_ UINT uExitCode
);
UINT type definition [2]:
An unsigned INT. The ...
rutsky (Vladimir Rutsky)

03/13/2013

07:00 PM Ruby Feature #8083 (Assigned): Exit status is limited to one-byte values which is invalid for Windows
=begin
Windows uses 32-bit process exit codes so Ruby incorrectly truncates them to one byte:
C:\Ruby193\bin>ruby -e "system('C:\windows\system32\cmd.exe /c exit 255'); puts $?.exitstatus"
255
C:\Ruby193\bin>ruby -e "system('C...
rutsky (Vladimir Rutsky)

Also available in: Atom