From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Bug in shell.el: explicit-bash-args does not work for bash 1.x Date: Mon, 28 Oct 2002 16:48:02 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200210282148.g9SLm2711909@rum.cs.yale.edu> References: <5xn0p2mw3z.fsf@kfs2.cua.dk> <5x1y6cg2ff.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035841707 8371 80.91.224.249 (28 Oct 2002 21:48:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2002 21:48:27 +0000 (UTC) Cc: rms@gnu.org, schwab@suse.de, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186HkI-0002As-00 for ; Mon, 28 Oct 2002 22:48:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 186Hob-0001KR-00 for ; Mon, 28 Oct 2002 22:52:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186Hl5-0004eG-00; Mon, 28 Oct 2002 16:49:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 186Hk1-0004Mq-00 for emacs-devel@gnu.org; Mon, 28 Oct 2002 16:48:09 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 186Hjz-0004MJ-00 for emacs-devel@gnu.org; Mon, 28 Oct 2002 16:48:08 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 186Hjw-0004LZ-00; Mon, 28 Oct 2002 16:48:04 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g9SLm2711909; Mon, 28 Oct 2002 16:48:02 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: storm@cua.dk (Kim F. Storm) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8860 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8860 > (let* ((prog (or (and (boundp 'explicit-shell-file-name) explicit-shell-file-name) > (getenv "ESHELL") shell-file-name)) > (name (file-name-nondirectory prog))) > (if (and (equal name "bash") > (file-executable-p prog) > (string-match "bad option" > (shell-command-to-string (concat prog " --noediting")))) > '("-i") > '("--noediting" "-i"))) I must say I don't like the idea of running a program when loadng a .el file. It's already done at various places, tho. There is no strong reason, but one of the recent problem I came across in this area is that process operations don't work properly during dumping (the handling of sigchld is explicitly not turned on because it can supposedly prevent unexec from working right). That prevents byte-compiling ediff with temacs, for example, because ediff runs `patch' (IIRC) while loading one of its .el files. Stefan