> Got a little annoyance regarding $PS1 (and presumably other prompt variab=
> les)
>
> I'm running Bash 2.05a.0(1)-release (from Debian apt), and the bug can be=
> =20
> called by setting the prompt to something containing ANSI color codes, i.=
> e.:
>
> PS1=3D'\033[36m[\A\033[0;1m \u\033[0m@\h\033[0;1m \W\033[0;36m]$\033[0m '
>
> Then filling the command line. After a certain amount of characters, the=20
> cursor wraps to the begining of the same line, while it shouldn't go anyw=
> here=20
> for a few more characters (since there is still space on the line), and t=
> hen=20
> it should wrap down to the next line.
Look at the Bash FAQ, question E3.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/