aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorEli Zaretskii2001-07-17 10:34:48 +0000
committerEli Zaretskii2001-07-17 10:34:48 +0000
commitb2c8319e4ea8f893dcbced259a801bfa4e64e823 (patch)
tree94b6f49a4d32ebd5efa24db0b3704b782f881f8b /man
parent5333e22e4f9943ebfdfdd8bea1be947052371046 (diff)
downloademacs-b2c8319e4ea8f893dcbced259a801bfa4e64e823.tar.gz
emacs-b2c8319e4ea8f893dcbced259a801bfa4e64e823.zip
(Interactive Shell): Document that EMACS is only put into the shell's
environment if it is not already defined. From Francois Pinard.
Diffstat (limited to 'man')
-rw-r--r--man/misc.texi10
1 files changed, 6 insertions, 4 deletions
diff --git a/man/misc.texi b/man/misc.texi
index 9fb9f3734fd..9305cd4951b 100644
--- a/man/misc.texi
+++ b/man/misc.texi
@@ -392,7 +392,6 @@ and will store the decoded output into the file whose name is
392specified in the encoded text. 392specified in the encoded text.
393 393
394@vindex shell-file-name 394@vindex shell-file-name
395@cindex environment
396 Both @kbd{M-!} and @kbd{M-|} use @code{shell-file-name} to specify the 395 Both @kbd{M-!} and @kbd{M-|} use @code{shell-file-name} to specify the
397shell to use. This variable is initialized based on your @env{SHELL} 396shell to use. This variable is initialized based on your @env{SHELL}
398environment variable when Emacs is started. If the file name does not 397environment variable when Emacs is started. If the file name does not
@@ -449,6 +448,7 @@ a buffer name, and create (or reuse) a subshell in that buffer. All
449subshells in different buffers run independently and in parallel. 448subshells in different buffers run independently and in parallel.
450 449
451@vindex explicit-shell-file-name 450@vindex explicit-shell-file-name
451@cindex environment variables for subshells
452@cindex @env{ESHELL} environment variable 452@cindex @env{ESHELL} environment variable
453@cindex @env{SHELL} environment variable 453@cindex @env{SHELL} environment variable
454 The file name used to load the subshell is the value of the variable 454 The file name used to load the subshell is the value of the variable
@@ -471,9 +471,11 @@ from. For example, if you use bash, the file sent to it is
471specify a coding system after starting the shell by using @kbd{C-x 471specify a coding system after starting the shell by using @kbd{C-x
472@key{RET} p} in the shell buffer. @xref{Specify Coding}. 472@key{RET} p} in the shell buffer. @xref{Specify Coding}.
473 473
474 Emacs defines the environment variable @env{EMACS} in the subshell, 474@cindex @env{EMACS} environment variable
475with value @code{t}. A shell script can check this variable to 475 Unless the environment variable @env{EMACS} is already defined,
476determine whether it has been run from an Emacs subshell. 476Emacs defines it in the subshell, with value @code{t}. A shell script
477can check this variable to determine whether it has been run from an
478Emacs subshell.
477 479
478@node Shell Mode 480@node Shell Mode
479@subsection Shell Mode 481@subsection Shell Mode