changeset 77302:95a196e2e465

(File Name Expansion): Mention "superroot".
author Glenn Morris <rgm@gnu.org>
date Thu, 19 Apr 2007 04:22:13 +0000
parents db3b79cf4b09
children f988436b1743
files lispref/files.texi
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
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.