unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: David M. Karr <davidmichaelkarr@gmail.com>
Cc: "Pascal J. Bourguignon" <pjb@informatimago.com>, help-gnu-emacs@gnu.org
Subject: Re: How to avoid having shell scripts which fail from killing Emacs shell?
Date: Tue, 23 Jun 2009 17:56:48 +0200	[thread overview]
Message-ID: <48E7CCE3-2DDB-461D-A159-A3A5657EF3CF@Web.DE> (raw)
In-Reply-To: <4A40D575.6010703@gmail.com>


Am 23.06.2009 um 15:15 schrieb David M. Karr:

> I tried creating a dummy test class that doesn't read from stdin,  
> even when I force it to throw an exception, and that doesn't kill  
> the shell.  However, when I then change the class to read a line  
> from stdin, whether it throws an exception or not, the shell dies  
> after the script completes.

Can it be that you just use the wrong Java routine to read input?

> I imagine I could simplify this test case by just doing the  
> readline from the script, instead of the class.


Is the mix of shell and Java code necessary to set CLASSPATH or is  
its purpose wider? In the latter case, have you thought of making the  
Java code external and compiling it and then using that Java  
executable file in your script?

--
Greetings

   Pete

Who the fsck is "General Failure," and why is he reading my disk?







  reply	other threads:[~2009-06-23 15:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 23:03 How to avoid having shell scripts which fail from killing Emacs shell? David Karr
2009-06-19 23:06 ` David Karr
2009-07-10  2:21   ` David Combs
2009-06-20  9:06 ` Peter Dyballa
     [not found] ` <mailman.987.1245488796.2239.help-gnu-emacs@gnu.org>
2009-06-22 16:43   ` David Karr
2009-06-22 18:47     ` Peter Dyballa
2009-06-23  8:54     ` Pascal J. Bourguignon
2009-06-23 13:15       ` David M. Karr
2009-06-23 15:56         ` Peter Dyballa [this message]
     [not found]       ` <mailman.1141.1245762947.2239.help-gnu-emacs@gnu.org>
2009-06-23 15:06         ` David Karr
2009-06-23 17:26           ` Peter Dyballa
2009-06-22 20:21 ` David Karr
2009-06-22 22:49   ` Peter Dyballa
     [not found]   ` <mailman.1102.1245710994.2239.help-gnu-emacs@gnu.org>
2009-06-22 23:08     ` David Karr
2009-06-22 23:38     ` David Karr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48E7CCE3-2DDB-461D-A159-A3A5657EF3CF@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=davidmichaelkarr@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).