----- Original Message ----- From: "DJ Lucas" <[email protected]> To: "LFS Developers Mailinglist" <[email protected]> Sent: Saturday, June 05, 2010 8:29 AM Subject: LFS-6.6 - Old bug in bash has returned
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Can someone confirm? This was an old bug that seems to have returned in > LFS-6.6. When you use color escapes (or presumably any other escape > sequence), the count is added for the total of all columns, followed by > line wrapping overwriting the prompt. I don't know a better way to > explain other than showing: > not a bug I fixed the same mistake in our prompt 2 years ago you have to escape with \[ \] the non printing characters > I like to use red for root (to make it explicitly clear that your are > working as root!). Added the blue color to make it easier to reproduce > and managed to make it even more of an annoying problem: > > r...@anu:/sources/lfs-bootscripts-20100527 $ echo $PS1 > \033[1;31...@\h:\033[1;34m\w \033[0;39m$ should be \[\033[1;31m\...@\h:\[\033[1;34m\]\w\[\033[0;39m\] Gilles -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
