[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell prompt undesired characters
From: |
Dan Davison |
Subject: |
Re: shell prompt undesired characters |
Date: |
Fri, 10 Apr 2009 20:49:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Alex Bennee <kernel-hacker@bennee.com> writes:
> 2009/4/9 Dan Davison <davison@stats.ox.ac.uk>:
>> 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