From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: . and .. Date: Thu, 18 Mar 2004 09:32:59 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200403181532.i2IFWxP06342@raven.dms.auburn.edu> References: <200403180003.i2I03M703279@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079624543 1796 80.91.224.253 (18 Mar 2004 15:42:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2004 15:42:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 18 16:42:13 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B3zev-0006Bx-00 for ; Thu, 18 Mar 2004 16:42:13 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B3zev-0002Nb-00 for ; Thu, 18 Mar 2004 16:42:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B3zeZ-00060j-Ou for emacs-devel@quimby.gnus.org; Thu, 18 Mar 2004 10:41:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B3zeN-0005yx-On for emacs-devel@gnu.org; Thu, 18 Mar 2004 10:41:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B3zXe-0003vi-D7 for emacs-devel@gnu.org; Thu, 18 Mar 2004 10:35:13 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B3zXe-0003va-3o for emacs-devel@gnu.org; Thu, 18 Mar 2004 10:34:42 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i2IFYbKt014181; Thu, 18 Mar 2004 09:34:37 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i2IFWxP06342; Thu, 18 Mar 2004 09:32:59 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: schwab@suse.de In-reply-to: (message from Andreas Schwab on Thu, 18 Mar 2004 12:18:01 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20582 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20582 Andreas Schwab wrote: Note that cd (without the -P option) in the POSIX shell works like Emacs. The way I see it, without the -P option, the POSIX shell does not do _any_ replacing of symbolic links in the path name. So without the -P option, the question of whether to do that before or after simplifying away .. does not arise. This is indeed a subtlety of cd one has to be careful about. It is explicitly documented in the bash manual. Of course, the behavior of `expand-file-name' is documented too. There is a difference however. With `cd -L' vs `cd -P' one makes one single choice. In Emacs one makes a similar choice by calling or not calling `expand-file-name', a function whose primary purpose is something completely unrelated. This is both inconvenient and dangerous, as my ielm run illustrates. I do _not_ suggest changing the behavior of the Emacs `cd' command, because it indeed is consistent with the default -L behavior of the POSIX shell. Sincerely, Luc.