This is the mail archive of the cygwin@cygwin.com 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: 1.3.15 on W2K: return codes, bash, cmd.exe


On Fri, Dec 06, 2002 at 10:19:30AM -0800, Shankar Unni wrote:
>Stephen Powell wrote:
>
>>Try it without the /b, just "exit 1".
>
>Notice that she said she tried it, it works, but is not an option for 
>her because they need to be invoked from DOS command shells as well, and 
>she doesn't want the bat files to cause those shells to exit.

Angela is a former valued colleague of mine from Cygnus and Red Hat
days, so I offered some suggestions in private email.

It looks like if she changes the invocation of her .bat files from just
"foo.bat" to "cmd /c call foo.bat" then an "exit /b" in foo.bat will
work correctly.

I'm contemplating making a change to cygwin to cause this to be the
default.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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