Marcus Harnisch <marcus.harnisch(a)xemacs.org> writes:
"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
> If you want to pursue this, I think you need to ask on emacs-devel.
Not worth bothering. A docstring fix would be sufficient.
Not that I changed my mind about this (actually doing some
experimenting to find a suitable doc string amendment), but just for
the record:
(expand-file-name "/../foo/")
=> "/../foo/"
(expand-file-name "/../../foo/")
=> "/foo/"
(expand-file-name "/../../../foo/")
=> "/../foo/"
(expand-file-name "/../../../../foo/")
=> "/foo/"
(expand-file-name "/foo/../")
=> "/"
(expand-file-name "/foo/../../")
=> "/../"
(expand-file-name "/foo/../../../")
=> "/"
(expand-file-name "/foo/../../../../")
=> "/../"
I think you are getting the even/odd pattern. Beware of path names
that have parent references beyond root! This oscillating pattern is
particularly annoying when you traversing directory trees to find
project root directories or similar tasks.
Kindly
Marcus
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta