Re: windows exit codes truncated to 1 Byte

2016-03-31 Thread Eric Blake
On 03/31/2016 12:50 PM, Corinna Vinschen wrote: > On Mar 31 09:24, Eric Blake wrote: >> On 03/31/2016 07:30 AM, Björn Stabel wrote: >>> Am 31.03.2016 um 15:01 schrieb Cristian: I noted that exit codes returned by CMD and other apps (msiexec) are truncated to 1 byte (0 .. 255). >> >> This

Re: windows exit codes truncated to 1 Byte

2016-03-31 Thread Corinna Vinschen
On Mar 31 09:24, Eric Blake wrote: > On 03/31/2016 07:30 AM, Björn Stabel wrote: > > Am 31.03.2016 um 15:01 schrieb Cristian: > >> I noted that exit codes returned by CMD and other apps (msiexec) are > >> truncated to 1 byte (0 .. 255). > > This matches Linux, but not POSIX. Why? Does bash use

Re: windows exit codes truncated to 1 Byte

2016-03-31 Thread Eric Blake
On 03/31/2016 07:30 AM, Björn Stabel wrote: > Am 31.03.2016 um 15:01 schrieb Cristian: >> I noted that exit codes returned by CMD and other apps (msiexec) are >> truncated to 1 byte (0 .. 255). This matches Linux, but not POSIX. >> Windows exit codes are represented using 32 bits, so is this lim

Re: windows exit codes truncated to 1 Byte

2016-03-31 Thread Björn Stabel
Am 31.03.2016 um 15:01 schrieb Cristian: > I noted that exit codes returned by CMD and other apps (msiexec) are > truncated to 1 byte (0 .. 255). > > Steps to reproduce: > > 1) Create a batch with this content: > $ cat ./test.bat > @echo off > rem > echo Test exit code 266