From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: ~/.emacs_bash setting PS1
Date: Thu, 07 Feb 2008 21:57:29 -0500 [thread overview]
Message-ID: <jwvfxw4dunu.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: o36wspiyorv.fsf@pc10.cs.ucdavis.edu
>>> 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
prev parent reply other threads:[~2008-02-08 2:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 1:41 ~/.emacs_bash setting PS1 Samuel Karl Peterson
2008-02-05 9:09 ` Sven Joachim
2008-02-05 15:44 ` Samuel Karl Peterson
2008-02-05 9:25 ` Peter Dyballa
2008-02-05 10:27 ` Ehud Karni
2008-02-06 15:05 ` Stefan Monnier
2008-02-06 17:32 ` Samuel Karl Peterson
2008-02-08 2:57 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfxw4dunu.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).