From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: . and .. Date: Thu, 18 Mar 2004 12:18:01 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200403180003.i2I03M703279@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1079608903 21383 80.91.224.253 (18 Mar 2004 11:21:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2004 11:21:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 18 12:21:36 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 1B3vai-00039K-00 for ; Thu, 18 Mar 2004 12:21:36 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B3vah-00020T-00 for ; Thu, 18 Mar 2004 12:21:35 +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 1B3vZI-0002zw-Pu for emacs-devel@quimby.gnus.org; Thu, 18 Mar 2004 06:20:08 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B3vY0-0002dV-Lg for emacs-devel@gnu.org; Thu, 18 Mar 2004 06:18:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B3vXQ-0002MH-EU for emacs-devel@gnu.org; Thu, 18 Mar 2004 06:18:44 -0500 Original-Received: from [195.135.220.2] (helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B3vXL-0002LK-H9 for emacs-devel@gnu.org; Thu, 18 Mar 2004 06:18:07 -0500 Original-Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 3110031E0EE; Thu, 18 Mar 2004 12:18:01 +0100 (CET) Original-To: Luc Teirlinck X-Yow: It's NO USE.. I've gone to ``CLUB MED''!! In-Reply-To: <200403180003.i2I03M703279@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 17 Mar 2004 18:03:22 -0600 (CST)") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) 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:20572 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20572 Luc Teirlinck writes: > C and the shell handle . and .. as part of file name _resolution_. > They consistently treat "/home/teirllm/bar/../myfile" as a > *non-simplifiable* file name *until* they resolve the name left to > right. There is no processing to be done until we arrive at > "/home/teirllm/bar" which is a symlink and has to be replaced with > "home/teirllm/foo/bar" giving "/home/teirllm/foo/bar/../myfile". The > next thing to process is .. giving "/home/teirllm/foo/myfile". > > Quite often, but not always, Emacs sees things differently from the > way C, the shell and other programs do. Namely it first "simplifies" > the .. away, giving "/home/teirllm/myfile" and then nothing remains to > simplify, so this is the final result of resolution. Note that cd (without the -P option) in the POSIX shell works like Emacs. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."