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=oTE9N1MXy5/jywQ8Z2EdRrobxa1g3 HBDeV8d7a4+OIyTwSB+Ot4hjYFV8sGU1mGHhtssuwOysWplmGRLdJ/tI45lh8Yzh nRPtJU1X9EFNeakz/+odxjnHNrNYXw0L6l5OXYphXFAqYB0KkTMLz9N+OBZhmLSm u1vFy5dQ3cTGxQ= 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=wR+ JdQ6fm8e5kH7hjKQnVYC1iJWSznVqx8pv1tTRLwE6MauKtFQt6JkTy3F52T07jAl jOJ1/Iaz6iExplfzybrpqcF1b/N5M3fR/52io76VmOD1aTjqL1YFgzCcS2dVteoX FA4EunkSGU0nZtE6YwC0k1iySZ+Sf7iwLHWL9Pco= 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=-0.9 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-f41.google.com X-Received: by 10.112.146.33 with SMTP id sz1mr16372636lbb.14.1381494332104; Fri, 11 Oct 2013 05:25:32 -0700 (PDT) MIME-Version: 1.0 From: paul DOT hermeneutic AT gmail DOT com Date: Fri, 11 Oct 2013 06:25:12 -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