all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: help-gnu-emacs mailing list  <help-gnu-emacs@gnu.org>
Subject: shell prompt undesired characters
Date: Wed, 08 Apr 2009 13:00:26 -0400	[thread overview]
Message-ID: <877i1vkrmd.fsf@stats.ox.ac.uk> (raw)

I am having trouble getting a clean prompt with bash running under M-x
shell. Each line in the shell starts with

^[]0;~\a

(
I don't know how those two control characters will appear to you; what I
see in my emacs buffer is
^[]0;~^G
)

This is true if I set PS1='', so I believe my problem is not related to
escape characters in $PS1 (in fact they work fine if I use them).

I have tried with the system default .bashrc and the problem
persists. However, if I change to sh, then I get a normal, clean prompt
that displays just the contents of PS1.

Where are the strange initial characters above coming from when I run a
bash shell in emacs and how can I fix it?

Thanks a lot,

Dan
emacs 23.0.60.1
ubuntu 8.10




             reply	other threads:[~2009-04-08 17:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08 17:00 Dan Davison [this message]
2009-04-08 17:25 ` shell prompt undesired characters Peter Dyballa
2009-04-08 17:53   ` Dan Davison
2009-04-08 18:15     ` Peter Dyballa
2009-04-11  0:03     ` Alex Bennee
2009-04-11  0:49       ` Dan Davison
2009-04-08 17:28 ` Peter Dyballa

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877i1vkrmd.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.