]> git.eshelyaron.com Git - emacs.git/commitdiff
(File Name Expansion): Mention "superroot".
authorGlenn Morris <rgm@gnu.org>
Thu, 19 Apr 2007 04:22:13 +0000 (04:22 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 19 Apr 2007 04:22:13 +0000 (04:22 +0000)
lispref/files.texi

index f357b1f38141eeda58db865fa94c45f6930e3737..e2bc57c5567dec2dfdeb84c0030e30835d1a2b61 100644 (file)
@@ -1990,6 +1990,19 @@ canonical form:
 @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.