[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/files.texi
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/files.texi |
Date: |
Mon, 07 Jul 2003 16:48:27 -0400 |
Index: emacs/lispref/files.texi
diff -c emacs/lispref/files.texi:1.51 emacs/lispref/files.texi:1.52
*** emacs/lispref/files.texi:1.51 Tue Jun 24 14:16:37 2003
--- emacs/lispref/files.texi Mon Jul 7 16:48:26 2003
***************
*** 1809,1822 ****
@defun substitute-in-file-name filename
This function replaces environment variables references in
! @var{filename} with the environment variable values. Following standard
! Unix shell syntax, @samp{$} is the prefix to substitute an environment
! variable value.
The environment variable name is the series of alphanumeric characters
(including underscores) that follow the @samp{$}. If the character following
the @samp{$} is a @address@hidden, then the variable name is everything up to
the
matching @address@hidden
@c Wordy to avoid overfull hbox. --rjc 15mar92
Here we assume that the environment variable @code{HOME}, which holds
--- 1809,1833 ----
@defun substitute-in-file-name filename
This function replaces environment variables references in
! @var{filename} with the environment variable values. Following
! standard Unix shell syntax, @samp{$} is the prefix to substitute an
! environment variable value. If the input contains @samp{$$}, that is
! converted to @samp{$}; this gives the user a way to ``quote'' a
! @samp{$}.
The environment variable name is the series of alphanumeric characters
(including underscores) that follow the @samp{$}. If the character following
the @samp{$} is a @address@hidden, then the variable name is everything up to
the
matching @address@hidden
+
+ Calling @code{substitute-in-file-name} on output produced by
+ @code{substitute-in-file-name} tends to give incorrect results. For
+ instance, use of @samp{$$} to quote a single @samp{$} won't work
+ properly, and @samp{$} in an environment variable's value could lead
+ to repeated substitution. Therefore, programs that call this function
+ and put the output where it will be passed to this function need to
+ double all @samp{$} characters to prevent subsequent incorrect
+ results.
@c Wordy to avoid overfull hbox. --rjc 15mar92
Here we assume that the environment variable @code{HOME}, which holds
- [Emacs-diffs] Changes to emacs/lispref/files.texi,
Richard M. Stallman <=