LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [bug] set the PS1 env with SGR cause problem (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bbug%5D-set-the-ps1-env-with-sgr-cause-problem-719745/)

tianlijian 04-16-2009 11:39 PM

[bug] set the PS1 env with SGR cause problem
 
1. add the "export PS1='[\e[1;34m\W\e[0m]\$ " to /etc/profile or ~/.bash_profile .
The statement mush be putted in the configuration file, can not execute the bash command line, otherwise the problem will not occur.
2. type the command 'one two three four five six' in the command line.
3. use 'M-7 C-b' command move the cursor , you will see the display in confusion.

unSpawn 05-02-2009 05:46 PM

Quote:

Originally Posted by tianlijian (Post 3511784)
1. add the "export PS1='[\e[1;34m\W\e[0m]\$ " to /etc/profile or ~/.bash_profile . (..)
2. type the command 'one two three four five six' in the command line.
3. use 'M-7 C-b' command move the cursor , you will see the display in confusion.

Apart from the missing single quote in the export line, obvious errors for not having commands 'one', 'two', 'three', 'four', 'five' or 'six' and META-7 CTRL-b not doing anything in relation to your exported PS1 I don't see enough details to call this a "bug". If you're still around maybe you should explain.


All times are GMT -5. The time now is 05:27 PM.