From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Relation between the value of shell-file-name and explicit-shell-file-name Date: Thu, 14 Dec 2006 02:44:58 +0100 Message-ID: <4580AC9A.3090608@student.lu.se> References: <458084E3.6000707@student.lu.se> <47727.128.165.123.18.1166059995.squirrel@webmail.lanl.gov> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166060723 28144 80.91.229.10 (14 Dec 2006 01:45:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 01:45:23 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 02:45:20 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 1Gufex-0007lV-29 for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 02:45:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gufew-0000ex-Iy for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 20:45:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gufej-0000ed-PU for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:45:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gufei-0000eH-4j for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:45:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gufei-0000eD-0r for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:45:04 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gufeh-0006cf-Q2 for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:45:04 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62471 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Gufef-0006uu-53; Thu, 14 Dec 2006 02:45:02 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: herring@lanl.gov In-Reply-To: <47727.128.165.123.18.1166059995.squirrel@webmail.lanl.gov> X-Antivirus: avast! (VPS 0658-0, 2006-12-13), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1Gufef-0006uu-53. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Gufef-0006uu-53 cf55ba15c54f22bb94539f636238ca1b 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:63698 Archived-At: Stuart D. Herring wrote: >> 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? > Thanks Davis. I think the best would be to tell that it is only used by the function shell. And BTW the doc string for shell is incorrect regarding what shell file name to use.