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: How to avoid having shell scripts which fail from killing Emacs shell?


On 6/22/2009 3:38 PM, David Karr wrote:
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of Ken Brown
Sent: Monday, June 22, 2009 12:26 PM
On 6/22/2009 10:53 AM, David Karr wrote:
I've often been annoyed by shell scripts which fail for particular
reasons, at which point it causes my Emacs shell buffer to get killed,
with "Process shell<2> finished".
I don't recall ever seeing this happen, but maybe I just don't remember.
  Can you give me a simple test case?

I'm not sure how complicated it needs to be. My test case gathers a couple of parameters and then calls a Java (JDK 1.6.0_14) class. The class throws an exception (file not found) in my test case (because I'm deliberately giving it parameters that will cause that). If I give it parameters that will avoid the exception, then it doesn't kill the shell.

Is that enough information to build a test case with?

No. I don't have JDK installed, and I don't have any idea how it interacts with cygwin processes. If you can trigger the problem with a simple shell script that doesn't require JDK, I'll see if I can help. Or maybe someone on the list who does have JDK can suggest something for you to try.


Ken

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