-----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:
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$
r...@anu:/sources/lfs-bootscripts-20100527 $ ls
ChangeLog contrib lfs LICENSE Makefile README
l
r...@anu:/sources/lfs-bootscripts-20100527 $ ls > /dev/null
l
r...@anu:/sources/lfs-bootscripts-20100527 $ echo blah/null
blah
r...@anu:/sources/lfs-bootscripts-20100527 $ echo blah/null
blah ls >
/dev/null
Removing the color escapes fixes everything:
r...@anu:/sources/lfs-bootscripts-20100527 $ echo $PS1
\033[1;31...@\h:\033[1;34m\w \033[0;39m$
@\h:\ $ "/sources/lfs-bootscripts-20100527 $ export PS1="\u
r...@anu:\ $ export PS1="\...@\h:\w $ "
r...@anu:/sources/lfs-bootscripts-20100527 $ ls
ChangeLog contrib lfs LICENSE Makefile README
r...@anu:/sources/lfs-bootscripts-20100527 $ ls > /dev/null
kjdlfjlfkjlksjflskjflkljlfjslkfjlsdkj
ls: cannot access kjdlfjlfkjlksjflskjflkljlfjslkfjlsdkj: No such file or
directory
r...@anu:/sources/lfs-bootscripts-20100527 $ ls > /dev/null
r...@anu:/sources/lfs-bootscripts-20100527 $ ls > /dev/null
r...@anu:/sources/lfs-bootscripts-20100527 $ ls > /dev/null
r...@anu:/sources/lfs-bootscripts-20100527 $ ls > /dev/null
r...@anu:/sources/lfs-bootscripts-20100527 $ echo blah
blah
r...@anu:/sources/lfs-bootscripts-20100527 $
That is going to wrap incorrectly, but that is the way it is on the
screen. In the first example PS1, the 'ls > /dev/null' is just the
right length with that hostname, path, and PS1 to never advance the line
with repeatedly pressing the up arrow. and leaving that trailing l
character in column 80, and of course overwriting the previous command
with the next.
Can anybody else confirm? Or better, has somebody already confirmed and
found a fix? Eratta? Does the problem exist in svn version?
- -- DJ Lucas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iQIcBAEBAgAGBQJMCe7OAAoJEIUM+xKzBYsIvhoP/3GFz+/x1jLkUQqIe8RLEFQu
LDCLt6Ppo3AOrvj9GAkzaEdZJlikDpDdWfD4DtYkQ37Ve2T2RDic8kbFUidB01Tn
EDhMj1qcCe/tf+3Rc9DhTfHWgsYJYPIPgL9wAyKIyhP7G2ahsKlLljLVWZ0aaTgr
REGITYOzBp5hk4Ug909Y/b3lYnOevNon82baAo45bmkwAOnQJFY4dJx9w5kplK69
GE1gTkQMYdkD54BbYCFMW/I4J/SUMADjEfidx7/rtooNLRWC9jgJzsJ/BWjyirf2
09cFgQdurG240BSiz8kSX9cawX8H3/dqxT6DwyHDU5ZpKKUtxM2DEcyvuzKRBOEF
47q39zee9bUHx7xiWz/N9feJInAN8nCocRZHiVu1z/ZDKdwoDaFgF6NHnEmMjnmd
pi4cM0Tr7RK0xTuHVMDP2ZJhWSAQvukJPUQxAZA5p6vPZi6KAlPeh3kl+F9ZbsQq
NKOJAk/NGi1YxXMLkM6Ygn96Lap+VXHLHRwSnIhVWsSOoVXs20H4lYaYrhRoJVMr
9qZYP4xVh1xKbSytsHNEoMbzrxGAkLO7czhxJJT2HejHk/hBAP24g1PIYTkQO+Av
LrrZC3fm8CzTO2dCTcOE0I/im3r6kCD3Dy5ka/Nr6qIipGlNa4Qi95XfhezN/U+7
V5kcDsJS3GI8UtvlyQ0Q
=p5qp
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content, and is believed to be clean.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page