From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.help Subject: shell prompt undesired characters Date: Wed, 08 Apr 2009 13:00:26 -0400 Message-ID: <877i1vkrmd.fsf@stats.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1239210103 29082 80.91.229.12 (8 Apr 2009 17:01:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2009 17:01:43 +0000 (UTC) To: help-gnu-emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 08 19:03:02 2009 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 1LrbAP-0008Gb-5Z for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 19:02:25 +0200 Original-Received: from localhost ([127.0.0.1]:53685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrb90-0000Wy-MR for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 13:00:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrb8e-0000WZ-D2 for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:00:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrb8b-0000WN-0B for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:00:36 -0400 Original-Received: from [199.232.76.173] (port=45664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrb8a-0000WK-QI for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:00:32 -0400 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]:60077) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lrb8Z-0003tZ-Hg for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:00:31 -0400 Original-Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id n38H0SFj024520 for ; Wed, 8 Apr 2009 18:00:28 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id B07BD3201A; Wed, 8 Apr 2009 18:00:28 +0100 (BST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:63576 Archived-At: I am having trouble getting a clean prompt with bash running under M-x shell. Each line in the shell starts with ]0;~ ( 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