From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: How to avoid having shell scripts which fail from killing Emacs shell? Date: Tue, 23 Jun 2009 17:56:48 +0200 Message-ID: <48E7CCE3-2DDB-461D-A159-A3A5657EF3CF@Web.DE> References: <88ba12ed-8f02-4f3e-bb30-cc6155a38df2@f38g2000pra.googlegroups.com> <533b7087-5aa6-4278-b995-6a2166e7494e@c18g2000prh.googlegroups.com> <7cr5xbpbxz.fsf@pbourguignon.anevia.com> <4A40D575.6010703@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245776362 5307 80.91.229.12 (23 Jun 2009 16:59:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 16:59:22 +0000 (UTC) Cc: "Pascal J. Bourguignon" , help-gnu-emacs@gnu.org To: David M. Karr Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 23 18:59:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJ9Ky-0007Gp-Kf for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 18:59:12 +0200 Original-Received: from localhost ([127.0.0.1]:32962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ9Ky-0004zx-1x for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 12:59:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ8Mk-0003cz-Oo for help-gnu-emacs@gnu.org; Tue, 23 Jun 2009 11:56:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ8Mf-0003W5-8j for help-gnu-emacs@gnu.org; Tue, 23 Jun 2009 11:56:58 -0400 Original-Received: from [199.232.76.173] (port=41686 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ8Me-0003VR-57 for help-gnu-emacs@gnu.org; Tue, 23 Jun 2009 11:56:52 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:34760) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJ8Md-0001aG-Lo for help-gnu-emacs@gnu.org; Tue, 23 Jun 2009 11:56:51 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id F1D38101100FC; Tue, 23 Jun 2009 17:56:50 +0200 (CEST) Original-Received: from [91.35.230.120] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #277) id 1MJ8Mc-000182-00; Tue, 23 Jun 2009 17:56:50 +0200 In-Reply-To: <4A40D575.6010703@gmail.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+uZxsTGtlyx/U9KdULg/ivDntHb/lLa7PDeoVe EDDcNkqHOWL0VvB8dvKWf7iddQF4lLfpkgTV7ZBVNyzbfi0QJJ 5PjUmyXZLoDq0z2tui7g== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65458 Archived-At: 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?