From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: yet another rookie question M-x shell Date: Fri, 10 Mar 2006 10:56:57 -0700 Message-ID: References: <1141822182.505756.279110@i40g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142013992 1994 80.91.229.2 (10 Mar 2006 18:06:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2006 18:06:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 19:06:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHm0Q-0000C1-My for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2006 19:06:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHm0Q-0002AQ-15 for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2006 13:06:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FHlzw-00029W-K8 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 13:05:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FHlzs-00028Q-Vy for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 13:05:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHltN-0007AT-9p for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 12:59:09 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FHlwi-0005Zq-BI for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 13:02:36 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FHlsT-00064M-F7 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2006 18:58:13 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Mar 2006 18:58:13 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Mar 2006 18:58:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 44 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <1141822182.505756.279110@i40g2000cwc.googlegroups.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33687 Archived-At: billy wrote: > I have no problem getting a shell to work. > How do I get more than one shell available? > M-x returns me to the same shell each time. ,----[ C-h f shell RET ] | shell is an interactive compiled Lisp function in `shell'. | (shell &optional BUFFER) | | Run an inferior shell, with I/O through BUFFER (which defaults to `*shell*'). | Interactively, a prefix arg means to prompt for BUFFER. | If BUFFER exists but shell process is not running, make new shell. The sentence above means `C-u M-x shell RET' does what you want. | If BUFFER exists and shell process is running, just switch to BUFFER. | Program used comes from variable `explicit-shell-file-name', | or (if that is nil) from the ESHELL environment variable, | or else from SHELL if there is no ESHELL. | If a file `~/.emacs_SHELLNAME' exists, it is given as initial input | (Note that this may lose due to a timing error if the shell | discards input when it starts up.) | The buffer is put in Shell mode, giving commands for sending input | and controlling the subjobs of the shell. See `shell-mode'. | See also the variable `shell-prompt-pattern'. | | To specify a coding system for converting non-ASCII characters | in the input and output to the shell, use C-x RET c | before M-x shell. You can also specify this with C-x RET p | in the shell buffer, after you start the shell. | The default comes from `process-coding-system-alist' and | `default-process-coding-system'. | | The shell file name (sans directories) is used to make a symbol name | such as `explicit-csh-args'. If that symbol is a variable, | its value is used as a list of arguments when invoking the shell. | Otherwise, one argument `-i' is passed to the shell. | | (Type C-h m in the shell buffer for a list of commands.) `---- -- Kevin Rodgers