Mercurial > emacs
comparison lisp/shell.el @ 1076:8a936037cedc
entered into RCS
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 04 Sep 1992 07:35:10 +0000 |
parents | 6295ac3be480 |
children | dd8e5024b4f9 |
comparison
equal
deleted
inserted
replaced
1075:f402fe560fcd | 1076:8a936037cedc |
---|---|
238 ;;;###autoload | 238 ;;;###autoload |
239 (defun shell () | 239 (defun shell () |
240 "Run an inferior shell, with I/O through buffer *shell*. | 240 "Run an inferior shell, with I/O through buffer *shell*. |
241 If buffer exists but shell process is not running, make new shell. | 241 If buffer exists but shell process is not running, make new shell. |
242 If buffer exists and shell process is running, | 242 If buffer exists and shell process is running, |
243 just switch to buffer *shell*. | 243 just switch to buffer `*shell*'. |
244 Program used comes from variable explicit-shell-file-name, | 244 Program used comes from variable explicit-shell-file-name, |
245 or (if that is nil) from the ESHELL environment variable, | 245 or (if that is nil) from the ESHELL environment variable, |
246 or else from SHELL if there is no ESHELL. | 246 or else from SHELL if there is no ESHELL. |
247 If a file ~/.emacs_SHELLNAME exists, it is given as initial input | 247 If a file `~/.emacs_SHELLNAME' exists, it is given as initial input |
248 (Note that this may lose due to a timing error if the shell | 248 (Note that this may lose due to a timing error if the shell |
249 discards input when it starts up.) | 249 discards input when it starts up.) |
250 The buffer is put in shell-mode, giving commands for sending input | 250 The buffer is put in Shell mode, giving commands for sending input |
251 and controlling the subjobs of the shell. See shell-mode. | 251 and controlling the subjobs of the shell. See `shell-mode'. |
252 See also variable shell-prompt-pattern. | 252 See also the variable `shell-prompt-pattern'. |
253 | 253 |
254 The shell file name (sans directories) is used to make a symbol name | 254 The shell file name (sans directories) is used to make a symbol name |
255 such as `explicit-csh-arguments'. If that symbol is a variable, | 255 such as `explicit-csh-arguments'. If that symbol is a variable, |
256 its value is used as a list of arguments when invoking the shell. | 256 its value is used as a list of arguments when invoking the shell. |
257 Otherwise, one argument `-i' is passed to the shell. | 257 Otherwise, one argument `-i' is passed to the shell. |