I figure out my problem. I have colored prompt, and I used as a template standard .bashrc taken from the web. In which blue defined as BLUE='\e[0;34m' and no color as NC=\e[0m', and then I use for prompt definition something like this:
PS1="${BLUE}\h:\${PWD}>>"
To fix the problem I redefined colors as:
BLUE='\[\e[0;34m\]'
NC=\[\e[0m\]'
and this fixed the problem. I am too lazy to find out what was wrong before and what is fixed later. But I'd suggest to anybody to use color prompts at least when you are root. I use red color prompt when I am 'rooting' on my computer, and it makes me more cautious when I am trying to do something radical.
Last edited by rsashok; 01-30-2007 at 07:44 PM.
|