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:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=uYqP0obl3YwgnodjiJyF3GNpwJx/V bJ5IKokCpUi36cmh8pGxUplckNykl9W2Huoj2MUbwvefxSE6p3t8cmrGpa4T9nFz O58KH2BBZasOGSvFrWWsdZM++L/DNOFXajtrWvv4szYjMNfl3OKkTO/m/tMXmZrS PS7nu7cTJTfkGU= 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:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=NjNh4RfPIxShb8GXvVu+YjwFKl4=; b=kH4 lydkeIp1rOQf3wTBjbRUVK5Mf86qN4tw8Yp2nvLXOjdExSQzjoHgE7G99KxxJ4Tq IsoZqf67w2UmB309XRbCKh0EaD356/p0kQ9/+tdDHso4AbLvTSl2easzIK2sQnS1 y8I1a26iwjbGhwsAx1C+cjF/trV+bJmPWTg6qLbY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f53.google.com X-Received: by 10.152.180.139 with SMTP id do11mr6206717lac.23.1381494467572; Fri, 11 Oct 2013 05:27:47 -0700 (PDT) MIME-Version: 1.0 From: paul DOT hermeneutic AT gmail DOT com Date: Fri, 11 Oct 2013 06:27:27 -0600 Message-ID: Subject: ERRORLEVEL not returning to Cygwin shell To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 I am using CYGWIN_NT-5.1 PAC047922 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin An exit code returned by a DOS batch file does not seem to be coming back to the Cygwin shell. I am using bash. $ cat myexit.bat @echo off set EXITCODE=%1 echo got here with %1 exit /b %EXITCODE% $ cmd /c c:/DOCUME~1/pwatson/bin/myexit.bat 8 got here with 8 $ echo $? 0 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple