X-Spam-Check-By: sourceware.org X-T2-Posting-ID: dCnToGxhL58ot4EWY8b+QGwMembwLoz1X2yB7MdtIiA= X-Cloudmark-Score: 0.000000 [] Date: Mon, 6 Feb 2006 23:51:54 +0100 From: Samuel Thibault To: cygwin AT cygwin DOT com Subject: Re: problems with exit codes on 64-bit Windows XP Pro x64 Message-ID: <20060206225154.GH7540@bouh.residence.ens-lyon.fr> Mail-Followup-To: cygwin AT cygwin DOT com References: <1004 DOT 1139265420 AT gemini> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1004.1139265420@gemini> User-Agent: Mutt/1.5.9i-nntp X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 ? Regards, Samuel -- 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/