This is the mail archive of the
mailing list for the Cygwin project.
Re: Return codes over 1 byte
- From: Michael DePaulo <mikedep333 at gmail dot com>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Thu, 9 Jul 2015 20:20:59 -0400
- Subject: Re: Return codes over 1 byte
- Authentication-results: sourceware.org; auth=none
- References: <CAMKht8gCOXF+nObhC69_LyU+TOsbWnnK8PCt-ghgWT=40hmMaw at mail dot gmail dot com> <1436485372 dot 7208 dot 77 dot camel at cygwin dot com>
On Thu, Jul 9, 2015 at 7:42 PM, Yaakov Selkowitz <email@example.com> wrote:
> On Thu, 2015-07-09 at 19:30 -0400, Michael DePaulo wrote:
>> mark06 mentioned this on IRC today and then left the channel about 1 hour later:
>> <mark06> has anyone ever discussed exit codes above one byte? they are
>> valid on modern windows, but cygwin's bash will mess them
>> I was curious, so I googled it (I could not find an answer) and then
>> tried it out. I can confirm the what he said.
Right, only the least significant 8 bits are outputted. So "257" becomes "1".
I thought I read somewhere that the Cygwin mintty terminal + bash
shell is supposed to be suitable for running native windows apps.
Maybe I was thinking of the 1st paragraph on this page after the list
Or maybe I was thinking about this reply:
Either way, I feel like this should be documented somewhere. Perhaps I
should submit a patch to add a section like "return codes" to to this
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple