delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/06/18:56:55

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
Subject: Re: problems with exit codes on 64-bit Windows XP Pro x64
In-Reply-To: Message from Samuel Thibault <samuel.thibault@ens-lyon.org> of "Mon, 06 Feb 2006 23:51:54 +0100." <20060206225154.GH7540@bouh.residence.ens-lyon.fr>
MIME-Version: 1.0
Date: Mon, 06 Feb 2006 15:56:48 -0800
Message-ID: <3607.1139270208@gemini>
From: Kevin Layer <layer AT franz DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k16NusjX005599

Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org> wrote:

>> Hi,
>> 
>> Kevin Layer, le Mon 06 Feb 2006 14:37:00 -0800, a écrit :
>> Content-Description: bug.c
>> > /* demonstrate a bug in capturing the exit code from shell */
>> > main (int argc, char *argv[])
>> > {
>> >     int docommand(char *), res;
>> >     
>> >     if (argc > 1) {
>> > 	res = docommand(argv[1]);
>> > 	printf("result = %d\n", res);
>> >     } else {
>> > 	 printf("no command!\n");
>> >     }
>> > }
>> 
>> There is no "return res;" here, is that on purpose ?

No, but it's not relevant to the problem.  (The main text of my message
wasn't sent until later, since something stripped it out.)

Kevin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


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