delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/11/09:33:57

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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=yeZA0mmM27V4O+th
X/YioCuaayiTOiM2UtO6Rwr7HjL0uKcNBR0vfscUXxaZ7YoOVeS44NmhU9Cfs4Ym
ybbnWkTbyxampnGYkhK1bG/XRGznNER8UCVwL8f21aHzDdb8XfbPKVJJd11j/NaG
n84awAJAOVGKzwXY6+PPnnKXq68=
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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=FAtJuu3QX9OLwVjLqZy6E3
NB6SI=; b=QW4w6SFox5YqNcfQoqZyvryKdaXlWL4qpqQtiggpbhvvXHw+uabfkN
1mXbZgCNntlSOYVgmcnXE3icMd6D9m25P9VA2rMX3nYAXfbd5/1+xd1WX/uZumXd
Qf2THFizqh42T1/CirO3n6p6R5H8ODjx53bbFW1kxclY8KgrIB+wQ=
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=-0.7 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173015pub.verizon.net
Message-id: <5257FE1A.5050905@cygwin.com>
Date: Fri, 11 Oct 2013 09:33:14 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ERRORLEVEL not returning to Cygwin shell
References: <CAJ4+4arwV_Tpp3AGu5c4qxxw36oDTqW+s5j1YW5GC32c-_V3eg AT mail DOT gmail DOT com>
In-reply-to: <CAJ4+4arwV_Tpp3AGu5c4qxxw36oDTqW+s5j1YW5GC32c-_V3eg@mail.gmail.com>

On 10/11/2013 8:27 AM, paul DOT hermeneutic AT gmail DOT com wrote:
> 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

WJFFM.  Same version, same arch.  Guess you need to do some more digging.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

- Raw text -


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