From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: About HOME in OS X Date: Tue, 11 Jun 2013 17:13:15 +0200 Message-ID: <07D69954-B511-4A3B-A3DB-C5597666256B@Web.DE> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370963618 4854 80.91.229.3 (11 Jun 2013 15:13:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2013 15:13:38 +0000 (UTC) Cc: help-gnu-emacs To: Xue Fuqiao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 17:13:38 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UmQGO-0006sZ-P9 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 17:13:36 +0200 Original-Received: from localhost ([::1]:33453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQGO-0006oY-B1 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 11:13:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQG6-0006nc-VV for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:13:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmQG5-0005kE-Tq for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:13:18 -0400 Original-Received: from mout.web.de ([212.227.15.4]:55835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmQG5-0005iD-Kk for help-gnu-emacs@gnu.org; Tue, 11 Jun 2013 11:13:17 -0400 Original-Received: from sumac.fritz.box ([176.198.63.55]) by smtp.web.de (mrweb004) with ESMTPA (Nemesis) id 0MRA59-1UvWA02NTT-00UeC4; Tue, 11 Jun 2013 17:13:15 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1085) X-Provags-ID: V03:K0:u45QaofeFCwSTtYcfDPhmoxwO437gwCPcg+U02IKjSIlG/mHswW fdHQUkB5lkKA4SXf2Rnfxg1JrX4mdS0p25fDJKL8NZ5a7RPT/9vBQbIwEJIVOCX9tsG0ZY0 hfYYJ8hKqcgynBggYn5NcEUAheU6KEseX/AZi4yTUNzYOGPs8tdS+xsZaKX0Ka86UbFXFgN uyI3QXfDftX+qj++mjb0g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91456 Archived-At: Am 11.06.2013 um 13:22 schrieb Xue Fuqiao: > Hi list, >=20 > On my system (OS X 10.8.4): >=20 > ELISP> (getenv "HOME") > "/Users/xfq" > ELISP> (expand-file-name "$HOME/foo") > = "/Users/xfq/emacs-repo/bzr/trunk/nextstep/Emacs.app/Contents/MacOS/$HOME/f= oo" >=20 > I'm confused here. Why don't the result of two evaluations be the = same? This must be a failure on Mac OS X =96 I see it too in GNU Emacs of some = 23.x and 24.x versions and variants=85 But wait! What is the = documentation saying? Convert filename NAME to absolute, and canonicalize it. Second arg DEFAULT-DIRECTORY is directory to start with if NAME = is relative (does not start with slash or tilde); if DEFAULT-DIRECTORY is = nil or missing, the current buffer's value of `default-directory' is used. NAME should be a string that is a valid file name for the = underlying filesystem. So this is *not* a function or function that deals with some shell's = constructs. "$HOME" is such a thing. -- Greetings Pete Every instructor assumes that you have nothing else to do except study = for that instructor's course.=20 =96 Fourth Law of Applied Terror