RE: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-24 Thread David Karr
> -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf > Of Eric Blake > Sent: Tuesday, June 23, 2009 9:04 AM > To: cygwin@cygwin.com > Subject: Re: How to avoid having shell scripts which fail from killing > Emacs shell? >

Re: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-23 Thread Eric Blake
David Karr real.com> writes: > > > > 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. > > > > I found that the key is whether the Java class reads from stdin or not. > > I just tried changing my sc

Re: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-23 Thread Matthias Andree
Am 23.06.2009, 17:03 Uhr, schrieb David Karr : I just tried changing my script to instead just do a "read" with a prompt. This does not kill the shell at the end of the script. When I do it in Java, it kills the shell at the end of the script. Weird. Is Java trying anything WRT signalling

RE: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-23 Thread David Karr
> -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf > Of David Karr > Sent: Monday, June 22, 2009 4:42 PM > To: kbr...@cornell.edu; cygwin@cygwin.com > Subject: RE: How to avoid having shell scripts which fail from kil

RE: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-23 Thread David Karr
> -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf > Of Matthias Andree > Sent: Tuesday, June 23, 2009 4:13 AM > To: cygwin@cygwin.com > Subject: Re: How to avoid having shell scripts which fail from killing > Emacs s

Re: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-23 Thread Matthias Andree
David Karr schrieb: >> -Original Message- >> From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf >> Of Ken Brown >> Sent: Monday, June 22, 2009 12:54 PM >> To: cygwin@cygwin.com >> Subject: Re: How to avoid having shell scripts wh

RE: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-22 Thread David Karr
> -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf > Of Ken Brown > Sent: Monday, June 22, 2009 12:54 PM > To: cygwin@cygwin.com > Subject: Re: How to avoid having shell scripts which fail from killing > Emacs shell? >

Re: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-22 Thread Ken Brown
On 6/22/2009 3:38 PM, David Karr wrote: -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@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 particula

RE: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-22 Thread David Karr
> -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf > Of Ken Brown > Sent: Monday, June 22, 2009 12:26 PM > To: cygwin@cygwin.com > Subject: Re: How to avoid having shell scripts which fail from killing > Emacs shell? >

Re: How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-22 Thread Ken Brown
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

How to avoid having shell scripts which fail from killing Emacs shell?

2009-06-22 Thread David Karr
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 think it's possible to code the scripts to use "trap", which might avoid this problem, but sometimes (most times, really) I