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 00:49:44 +0200 Message-ID: <736551DC-28FF-4445-936C-7F21C25DA8A6@Web.DE> References: <88ba12ed-8f02-4f3e-bb30-cc6155a38df2@f38g2000pra.googlegroups.com> <92bcc449-5616-4e2b-99dc-2f1dac3fde1c@y10g2000prc.googlegroups.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 1245711024 25177 80.91.229.12 (22 Jun 2009 22:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2009 22:50:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: David Karr Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 23 00:50:22 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 1MIsLA-0006u5-TI for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 00:50:17 +0200 Original-Received: from localhost ([127.0.0.1]:52384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIsLA-0008Ef-9B for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 18:50:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIsKm-0008DO-T5 for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 18:49:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIsKi-0008Bt-96 for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 18:49:52 -0400 Original-Received: from [199.232.76.173] (port=45667 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIsKi-0008Bj-1V for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 18:49:48 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:58177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIsKh-0003DK-Dz for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 18:49:47 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 35F331068FC8B; Tue, 23 Jun 2009 00:49:46 +0200 (CEST) Original-Received: from [91.35.191.243] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (WEB.DE 4.110 #277) id 1MIsKf-0004gk-00; Tue, 23 Jun 2009 00:49:46 +0200 In-Reply-To: <92bcc449-5616-4e2b-99dc-2f1dac3fde1c@y10g2000prc.googlegroups.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+mCwXXB8o5Cs1bBYNIEAvHuopSb3wT+orCDipn wTCFPSyvcwA3L6zJBo0ytsXY0GCk2hDIl9Vz+VShRy7Lp7n2D5 xjyTdvV6b4lKF2ETw0mg== 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:65441 Archived-At: Am 22.06.2009 um 22:21 schrieb David Karr: > I note that even though the Java class throws an exception, it doesn't > cause the script to exit at that point. I tried putting an "echo" > right after the Java call, and it executes fine. Right after that (as > it's the last line in the script), the script exits, and at my shell > prompt, I see "% exit" (where "%" is my PS1), and my shell buffer > terminates. Could you try it with other shells, too? You still have no proof that your bash is *not* broken. And, for another series of tests, you could try the same in another account. And particularly when launching GNU Emacs without customisation ... Besides this, the bash in *shell* buffer can be initialised differently than in an xterm. Bash is complicated. OK, I do remember similiar events! It was in tcsh. And there were two or three problems: a script was running wild, I was typing C-c or such wildly, and ... well, it could have been in cpan (filling up my root and boot file system). Anyway, in the end I saw the shell die, and at this moment it's not possible to gain more information. There were also events outside cpan. I do remember that I made mistakes, typing C-d for example. There could be one plausible cause: when you type input and your script is not prepared to read this, then GNU Emacs has to save it. Maybe this period is limited. And then something irregular could happen. I have no real idea, but what you encounter is not impossible. (And maybe Cygwin adds something to make it happen, it's an emulation in a host operating system.) There is no chance to make the tests in a real UNIX environment? -- Greetings Pete Indentation?! I will show you how to indent when I indent your skull!