From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: Relation between the value of shell-file-name and explicit-shell-file-name Date: Wed, 13 Dec 2006 17:33:15 -0800 (PST) Message-ID: <47727.128.165.123.18.1166059995.squirrel@webmail.lanl.gov> References: <458084E3.6000707@student.lu.se> Reply-To: herring@lanl.gov NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1166060019 26611 80.91.229.10 (14 Dec 2006 01:33:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 01:33:39 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 02:33:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GufTb-0006gc-F0 for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 02:33:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GufTa-0008CF-TA for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 20:33:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GufTN-0008Bj-Av for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:33:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GufTK-0008BK-I3 for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:33:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GufTK-0008BH-Df for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:33:18 -0500 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GufTK-0004B5-AR for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:33:18 -0500 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id kBE1XGnr005731 for ; Wed, 13 Dec 2006 18:33:16 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id kBE1XFsi031016; Wed, 13 Dec 2006 18:33:15 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id kBE1XFCF023607; Wed, 13 Dec 2006 18:33:15 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id kBE1XF1i023605; Wed, 13 Dec 2006 17:33:15 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 13 Dec 2006 17:33:15 -0800 (PST) In-Reply-To: <458084E3.6000707@student.lu.se> Original-To: "Lennart Borgman" User-Agent: SquirrelMail/1.4.8-2.el3.7lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63697 Archived-At: > What is the relation between the values of these two variables? Could > the doc strings please mention something about it? (Does > explicit-shell-file-name override shell-file-name for explicitly > requested shells? Are those the shells started with M-x shell? ) `explicit-shell-file-name' is only ever used by M-x shell. It does (or explicit-shell-file-name (getenv "ESHELL") shell-file-name) which obviously prefers $ESHELL to `shell-file-name' and `explicit-shell-file-name' to $ESHELL. Note that it was different in Emacs 21: (or explicit-shell-file-name (getenv "ESHELL") (getenv "SHELL") "/bin/sh") Here `shell-file-name' is absent. The idea is that e-s-f-n is the "personal" shell and s-f-n is the "utility" shell used by such things as M-! and (unless you customize `ediff-shell') M-x ediff. What do you want added to e-s-f-n's doc string to clarify this? Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.