[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: . and ..
From: |
Andreas Schwab |
Subject: |
Re: . and .. |
Date: |
Thu, 18 Mar 2004 12:18:01 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
Luc Teirlinck <address@hidden> 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.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: . and .., Luc Teirlinck, 2004/03/17
- . and .., Luc Teirlinck, 2004/03/17
- Re: . and ..,
Andreas Schwab <=