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 19:01:59 +0100 Message-ID: <45819197.4000406@student.lu.se> References: <458084E3.6000707@student.lu.se> <47727.128.165.123.18.1166059995.squirrel@webmail.lanl.gov> <4580AC9A.3090608@student.lu.se> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166119344 11285 80.91.229.10 (14 Dec 2006 18:02:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 18:02:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 19:02:23 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 1GuuuR-0005rx-GP for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 19:02:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuuuR-0000L6-4i for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 13:02:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuuuE-0000KN-D1 for emacs-devel@gnu.org; Thu, 14 Dec 2006 13:02:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuuuC-0000J9-Ib for emacs-devel@gnu.org; Thu, 14 Dec 2006 13:02:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuuuC-0000J2-Ga for emacs-devel@gnu.org; Thu, 14 Dec 2006 13:02:04 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Guuu8-0001cI-HS; Thu, 14 Dec 2006 13:02:00 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:64575 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Guuu6-0001TW-8P; Thu, 14 Dec 2006 19:01:59 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: rms@gnu.org In-Reply-To: X-Antivirus: avast! (VPS 0658-1, 2006-12-14), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1Guuu6-0001TW-8P. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Guuu6-0001TW-8P 2be9a266710b2f99f1800dead0cd9fa9 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:63731 Archived-At: Richard Stallman wrote: > 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. > > Could you be more specific? I do not see what is wrong there. > In the code for shell this part chooses the program to use for the shell: (let* ((prog (or explicit-shell-file-name (getenv "ESHELL") shell-file-name)) This seems good, but the doc string does not mention shell-file-name. It instead mentions SHELL which is wrong (and a bad idea): Program used comes from variable `explicit-shell-file-name', or (if that is nil) from the ESHELL environment variable, or else from SHELL if there is no ESHELL.