[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

BASH BUG



Hi all,

try the following PS1 (for root) and notice what happens:
	export PS1='^[[1m^[[31m\h:\w\$^[[0m '

^[ are scape secuences... This PS1 is red and shows the hostname and
the path.
Or try other scape secuences.

Before you reach the end of the line, bash jump to the start of it...
and when you go back, it goes two lines above. Try it ! It's really
annoying.

Bye.

-- 
-----------------------------------------------------------------------
                  -----> Powered by Debian/GNU Linux <-----
                  --> Linux User 140860   Machine 61143 <--

Juli-Manel Merino Vidal <jmmv@mail.com>        -  --   -- --   -- -   -
http://jmmv.cjb.net    /  My homepage          |  | | | | | | | |  | |
http://www.debian.org  /  Best linux dist.  |  |  |  |  | |  |  |  | |
http://www.gnu.org     /  GNU Project       ---|  |     | |     |   |


Reply to: