changeset 38459:08aca6a91513

(Interactive Shell): Document that EMACS is only put into the shell's environment if it is not already defined. From Francois Pinard.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 17 Jul 2001 10:34:48 +0000
parents ff938294cc35
children 6bee7ffac2cd
files man/misc.texi
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/man/misc.texi	Tue Jul 17 10:33:06 2001 +0000
+++ b/man/misc.texi	Tue Jul 17 10:34:48 2001 +0000
@@ -392,7 +392,6 @@
 specified in the encoded text.
 
 @vindex shell-file-name
-@cindex environment
   Both @kbd{M-!} and @kbd{M-|} use @code{shell-file-name} to specify the
 shell to use.  This variable is initialized based on your @env{SHELL}
 environment variable when Emacs is started.  If the file name does not
@@ -449,6 +448,7 @@
 subshells in different buffers run independently and in parallel.
 
 @vindex explicit-shell-file-name
+@cindex environment variables for subshells
 @cindex @env{ESHELL} environment variable
 @cindex @env{SHELL} environment variable
   The file name used to load the subshell is the value of the variable
@@ -471,9 +471,11 @@
 specify a coding system after starting the shell by using @kbd{C-x
 @key{RET} p} in the shell buffer.  @xref{Specify Coding}.
 
-  Emacs defines the environment variable @env{EMACS} in the subshell,
-with value @code{t}.  A shell script can check this variable to
-determine whether it has been run from an Emacs subshell.
+@cindex @env{EMACS} environment variable
+  Unless the environment variable @env{EMACS} is already defined,
+Emacs defines it in the subshell, with value @code{t}.  A shell script
+can check this variable to determine whether it has been run from an
+Emacs subshell.
 
 @node Shell Mode
 @subsection Shell Mode