From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Karr Newsgroups: gmane.emacs.help Subject: Re: How to avoid having shell scripts which fail from killing Emacs shell? Date: Mon, 22 Jun 2009 09:43:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: <533b7087-5aa6-4278-b995-6a2166e7494e@c18g2000prh.googlegroups.com> References: <88ba12ed-8f02-4f3e-bb30-cc6155a38df2@f38g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245692583 29024 80.91.229.12 (22 Jun 2009 17:43:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2009 17:43:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 22 19:43:01 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 1MInXp-0001I1-Cr for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 19:43:01 +0200 Original-Received: from localhost ([127.0.0.1]:56960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MInXo-0003iW-RU for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 13:43:00 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!c18g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 207.188.29.244 Original-X-Trace: posting.google.com 1245689024 5297 127.0.0.1 (22 Jun 2009 16:43:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 22 Jun 2009 16:43:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c18g2000prh.googlegroups.com; posting-host=207.188.29.244; posting-account=78dYpQkAAABkXq5R--mk7bpN1x43kmXK User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170214 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:65434 Archived-At: On Jun 20, 2:06=A0am, Peter Dyballa wrote: > Am 20.06.2009 um 01:03 schrieb David Karr: > > > to configure Emacs or the Bash inside Emacs, so that it doesn't get =A0 > > killed when a script it's running fails. > > Make the shell script trap (shell built-in) this catastrophic error =A0 > and just execute an exit (shell built-in) instead (in last millennium =A0 > this was standard). You can also run shell scripts asynchronously in =A0 > a dedicated temporary buffer by executing it as a shell or compile =A0 > command. If it matters, changing my test script to use "trap" to just exit on a signal didn't make any difference.