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: Sat, 20 Jun 2009 11:06:25 +0200 Message-ID: <320FE3C0-48AF-46BF-8771-58DC57A114E9@Web.DE> References: <88ba12ed-8f02-4f3e-bb30-cc6155a38df2@f38g2000pra.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 1245488820 18591 80.91.229.12 (20 Jun 2009 09:07:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2009 09:07:00 +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 Sat Jun 20 11:06:58 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 1MHwXK-00050A-05 for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 11:06:58 +0200 Original-Received: from localhost ([127.0.0.1]:48468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHwXJ-0004Oc-5K for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 05:06:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHwWw-0004OX-Aw for help-gnu-emacs@gnu.org; Sat, 20 Jun 2009 05:06:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHwWr-0004O3-9n for help-gnu-emacs@gnu.org; Sat, 20 Jun 2009 05:06:33 -0400 Original-Received: from [199.232.76.173] (port=53051 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHwWr-0004O0-2h for help-gnu-emacs@gnu.org; Sat, 20 Jun 2009 05:06:29 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:57967) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHwWq-0003XN-GA for help-gnu-emacs@gnu.org; Sat, 20 Jun 2009 05:06:28 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 85068106377E5; Sat, 20 Jun 2009 11:06:27 +0200 (CEST) Original-Received: from [91.35.234.125] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #277) id 1MHwWp-0003z1-00; Sat, 20 Jun 2009 11:06:27 +0200 In-Reply-To: <88ba12ed-8f02-4f3e-bb30-cc6155a38df2@f38g2000pra.googlegroups.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18CRZ85N7wNOPasHCk8XYKYPBfI+8daUuIiE4rv o2jMgMgMwDKYNg5iKfR5YenG/UsLWvVgc38bal5qBgSGYlM9OB GfiWSXGvpdYL+WQA0btg== 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:65398 Archived-At: Am 20.06.2009 um 01:03 schrieb David Karr: > to configure Emacs or the Bash inside Emacs, so that it doesn't get > killed when a script it's running fails. Make the shell script trap (shell built-in) this catastrophic error and just execute an exit (shell built-in) instead (in last millennium this was standard). You can also run shell scripts asynchronously in a dedicated temporary buffer by executing it as a shell or compile command. I'm not the bash guru (tcsh user), and its manual page is very long for reading it. I remember there is a section about SIGNALs. It should give some basic clues. -- Greetings Pete 0 %-/\_// (*)(*)