From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: ~/.emacs_bash setting PS1 Date: Thu, 07 Feb 2008 21:57:29 -0500 Organization: UseNetServer.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202442044 21925 80.91.229.12 (8 Feb 2008 03:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2008 03:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 08 04:41:06 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JNK6r-00020b-Iz for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Feb 2008 04:41:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNK6O-0002OB-PQ for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2008 22:40:36 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border1.newsrouter.astraweb.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!TEKSAVVY.COM-Free-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:GLfglG3cEV4Fs8Qn0nsJU26r0Z4= Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 31 Original-X-Trace: 03ba547abc524e9af3e8528380 Original-Xref: shelby.stanford.edu gnu.emacs.help:155940 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:51317 Archived-At: >>> file doesn't seem to work. Oddly enough, I can type 'exit' and then >>> I'll have a shell with the proper PS1 variable set. >> >> Could you give a precise recipe to reproduce this very odd behavior? > C-x C-f ~/.emacs_bash > ; put this as the only line in the file > export PS1="[\u@\h \W]$ " > C-x C-s > C-x C-k > M-x shell > exit > Emacs version: GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version > 2.12.0) of 2007-11-06 on terranova, modified by Ubuntu I tried it with Emacs-22.1 (from Debian testing) and with the following differences: - started emacs as "SHELL=/bin/bash emacs22 -Q" - did not do C-x C-k (which is not bound to any command, but to a submap containing various macro-expansion bindings). the result is that after typing `exit' and RET the shell process is terminated. I suspect that the "-Q" is key and that your problem is linked to some customization of yours. Stefan