help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ~/.emacs_bash setting PS1


From: Stefan Monnier
Subject: Re: ~/.emacs_bash setting PS1
Date: Thu, 07 Feb 2008 21:57:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>>> 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="address@hidden \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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]