delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/10/04:29:05

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Xw7NCIK9gS/sSlzQcuEOC8XYvmPO8cDrY2tJmSeHy1lHuSpeLNZdN
jFwFb+2m3w07PnR7vxmvBFakYP+wOfybq+GVRwO9Uh0f9bt/6CZxhpp6YavdN3sK
Q17hvN304ttCNiRnwy0kbABooIIhX809TmMcWtMzbsldRNOC9Fx9RI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=s8wCc0ApSl+rhmA/2b4GnIc96YY=; b=uyoIIqclkConXBFxd4/nlsREPhYW
x1g+Xf6/NIqg1GLGWU2aOaVoiIanZVVOqoB/qKFf7xFqsQzFeJLnR3yfrXmctmgl
eQSltCMJ/O/J7CyAe59PfI5nUUe/82TYrGyoEDs8yo5HaUfLUzVQx0y4hbPTmyDm
ake/GZQXPgo6tGo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Fri, 10 Jul 2015 10:28:40 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Return codes over 1 byte
Message-ID: <20150710082840.GN2918@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAMKht8gCOXF+nObhC69_LyU+TOsbWnnK8PCt-ghgWT=40hmMaw AT mail DOT gmail DOT com> <1436485372 DOT 7208 DOT 77 DOT camel AT cygwin DOT com> <CAMKht8gW1hhz89o=QjLfah0u4f-frNi3NF=y4XvqePEBwiBK-A AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAMKht8gW1hhz89o=QjLfah0u4f-frNi3NF=y4XvqePEBwiBK-A@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--iFtobK8oO579scb0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jul  9 20:20, Michael DePaulo wrote:
> On Thu, Jul 9, 2015 at 7:42 PM, Yaakov Selkowitz <yselkowitz AT cygwin DOT 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 h=
our 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.
> >
> > http://pubs.opengroup.org/onlinepubs/9699919799/functions/exit.html
> > https://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
> >
> > --
> > Yaakov
>=20
> Right, only the least significant 8 bits are outputted. So "257" becomes =
"1".
>=20
> 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
> of features:
> https://code.google.com/p/mintty/
>=20
> Or maybe I was thinking about this reply:
> https://cygwin.com/ml/cygwin/2007-03/msg00758.html
>=20
> 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
> page?
> https://cygwin.com/cygwin-ug-net/using-effectively.html
> https://cygwin.com/git/gitweb.cgi?p=3Dnewlib-cygwin.git;a=3Dblob;f=3Dwins=
up/doc/effectively.xml

Feel free.  Please send patches to the cygwin-patches ML.  While you're
at it, you might want to scratch the entire section called "Cygwin and
Windows Networking".  It's so 20th century...


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--iFtobK8oO579scb0
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVn4I4AAoJEPU2Bp2uRE+geqMP/0kuykr/dp9yhH/mGboOkY7Q
M1hLZwCb/cS41ypwr9Q9KhC7ow6mSu2F4AwK9Zu+Ri/SPlpRrFI82uTsscJh0lTq
H+ngWMxVZZUIjaKniDR/eqHRnkNW6fmg8eUYsGP7bJLYjsgFyeIH8+GNBMGzrWvz
MS3ri0VojIABeb3xqdh1AYlhlg3uGsQbdHzvy+59Qf8Bmxxcqmh945Ja0toKOzhy
XAZlaRRGUSp4sR13tTXKGo/2Wsxs9MfcBcDPzsnmMkz7bC2JQMaTcu2tcI9eOrmd
jrH9lwJF665dfp9HpFaeNDlHhaoJIZslfc8xxJERhLZi0YzbbRMwRk5CGqrYi8TF
2JgUAXqMmZJ3wZHJiDZHMN50qlZPXZAjSLkivlhvg7nf5KNEOQ/3DCHpLVWxhmk4
iKT7Wjvs2Za50UOFKFIwReL9Z2tsOl/OCvn2G7LhJVm+Gb7oMa1yI1GaWGbm5SQ5
zPdL0AWowRSDsZaZQMYDW7Yw2tDNAETIPsFv2zKmAUO860jWu4WWjeq4XLFezjeL
3AGUhk/+ViB/13KZCBwjKzyfCGWIuIppLA6d+YWmm1uVPCUL4hF+ash18sZgmk1A
uhfR9VUKNzCZRIp1lgbKeAzSH4OC2Tvi1zhGHWQxd+CRDdSgzG9nRAfdVSp7HNr3
5JV3yuz83iJcGuYNS9mz
=zE9Y
-----END PGP SIGNATURE-----

--iFtobK8oO579scb0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019