LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2009, 12:39 AM   #1
tianlijian
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Rep: Reputation: 15
[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.

Last edited by tianlijian; 04-17-2009 at 12:43 AM.
 
Old 05-02-2009, 06:46 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Quote:
Originally Posted by tianlijian View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set Versus env Echo Kilo Linux - General 2 06-09-2009 03:56 AM
Set env prashanthjj *BSD 3 04-25-2007 02:14 PM
Cannot set LD_LIBRARY_PATH in .cshrc (able to set other env variables) senthilpr_in Linux - Newbie 4 02-26-2007 01:46 PM
set or env? calutateo Linux - Newbie 2 07-24-2005 01:56 PM
where are the env variables set on boot? Pete Dogg Linux - Software 1 09-10-2003 03:37 AM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration