Mercurial > emacs
diff lispref/files.texi @ 77302:95a196e2e465
(File Name Expansion): Mention "superroot".
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 19 Apr 2007 04:22:13 +0000 |
parents | 1f4b88ab053d |
children | 916f8aa2138d |
line wrap: on
line diff
--- a/lispref/files.texi Thu Apr 19 04:22:04 2007 +0000 +++ b/lispref/files.texi Thu Apr 19 04:22:13 2007 +0000 @@ -1990,6 +1990,19 @@ @end group @end example +In some cases, a leading @samp{..} can remain in the output: + +@example +@group +(expand-file-name "../home" "/") + @result{} "/../home" +@end group +@end example + +This is for use with filesystems that have the concept of a +``superroot'' above the root directory @file{/}. On other filesystems, +@file{/../} is interpreted exactly the same as @file{/}. + Note that @code{expand-file-name} does @emph{not} expand environment variables; only @code{substitute-in-file-name} does that.