comparison 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
comparison
equal deleted inserted replaced
77301:db3b79cf4b09 77302:95a196e2e465
1987 @group 1987 @group
1988 (expand-file-name "bar/../foo") 1988 (expand-file-name "bar/../foo")
1989 @result{} "/xcssun/users/rms/lewis/foo" 1989 @result{} "/xcssun/users/rms/lewis/foo"
1990 @end group 1990 @end group
1991 @end example 1991 @end example
1992
1993 In 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
2002 This 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{/}.
1992 2005
1993 Note that @code{expand-file-name} does @emph{not} expand environment 2006 Note that @code{expand-file-name} does @emph{not} expand environment
1994 variables; only @code{substitute-in-file-name} does that. 2007 variables; only @code{substitute-in-file-name} does that.
1995 2008
1996 Note also that @code{expand-file-name} does not follow symbolic links 2009 Note also that @code{expand-file-name} does not follow symbolic links