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: Re: shell prompt undesired characters Date: Fri, 10 Apr 2009 20:49:48 -0400 Message-ID: <87y6u8auab.fsf@stats.ox.ac.uk> References: <877i1vkrmd.fsf@stats.ox.ac.uk> <8763hf2frd.fsf@stats.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239411033 11182 80.91.229.12 (11 Apr 2009 00:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2009 00:50:33 +0000 (UTC) Cc: help-gnu-emacs mailing list To: Alex Bennee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 11 02:51:52 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 1LsRRn-0006ns-VO for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Apr 2009 02:51:52 +0200 Original-Received: from localhost ([127.0.0.1]:58760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsRQP-0008F1-4T for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Apr 2009 20:50:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsRQ5-0008Ee-2f for help-gnu-emacs@gnu.org; Fri, 10 Apr 2009 20:50:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsRQ0-0008EM-N5 for help-gnu-emacs@gnu.org; Fri, 10 Apr 2009 20:50:04 -0400 Original-Received: from [199.232.76.173] (port=59241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsRQ0-0008EG-H6 for help-gnu-emacs@gnu.org; Fri, 10 Apr 2009 20:50:00 -0400 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]:42944) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LsRPz-0007ue-UH for help-gnu-emacs@gnu.org; Fri, 10 Apr 2009 20:50:00 -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 n3B0noZn016876; Sat, 11 Apr 2009 01:49:50 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id 8440F3201B; Sat, 11 Apr 2009 01:49:50 +0100 (BST) In-Reply-To: (Alex Bennee's message of "Sat, 11 Apr 2009 10:03:54 +1000") 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:63652 Archived-At: Alex Bennee writes: > 2009/4/9 Dan Davison : >> Thanks, but unfortunately that doesn't solve it. I've tried without any >> ~/.emacs and ~/.bashrc, on emacs22, and I still get those initial >> characters. They're not coming from $PS1, so where are they coming from? > > PS2? Bash has a whole bunch of env variables for various things, > including one for a > command to run after every line. I'd just do an 'env' and grep through > for anything that > looks like an escape character. You're right; that revealed that the answer was $PROMPT_COMMAND. So it looks like that'll be something to set in ~/.emacs_bash. I should have looked into this more thoroughly myself... Thanks Peter and Alex for replies. Dan