This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ERRORLEVEL not returning to Cygwin shell


On 10/11/2013 8:27 AM, paul.hermeneutic@gmail.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]