aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
Diffstat (limited to 'lispref')
-rw-r--r--lispref/files.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index f357b1f3814..e2bc57c5567 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -1990,6 +1990,19 @@ canonical form:
1990@end group 1990@end group
1991@end example 1991@end example
1992 1992
1993In some cases, a leading @samp{..} can remain in the output:
1994
1995@example
1996@group
1997(expand-file-name "../home" "/")
1998 @result{} "/../home"
1999@end group
2000@end example
2001
2002This is for use with filesystems that have the concept of a
2003``superroot'' above the root directory @file{/}. On other filesystems,
2004@file{/../} is interpreted exactly the same as @file{/}.
2005
1993Note that @code{expand-file-name} does @emph{not} expand environment 2006Note that @code{expand-file-name} does @emph{not} expand environment
1994variables; only @code{substitute-in-file-name} does that. 2007variables; only @code{substitute-in-file-name} does that.
1995 2008