Ok, I think this fix my problem, thanks.<br>But I have a new info about this: first than put colors on bash, the Debian terminals already have this problem.<br>This was already fixed on repositories?<br><br>Thanks<br><br>Saulo<br>
<br><div><span class="gmail_quote">2008/3/11, Carsten Hey <<a href="mailto:c.hey@web.de">c.hey@web.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
close 470230<br> thanks<br> <br> Hi,<br> <br> since Debian bug #53491 (where a user had the same problem as you) has<br> been fixed, /usr/share/doc/bash/README.Debian.gz states:<br> <br> | 4. bash doesn't display prompts correctly.<br>
|<br> | When using colors in prompts (or escape characters), then make sure<br> | those characters are surrounded by \[ and \]. For more information<br> | look at the man page bash(1) and search for PROMPTING.<br> <br> This is exactly what is missing in your /etc/profile.<br>
<br> Additionally, the so called skeleton files, which are copied into the<br> home directory of a new user have an example for a colored bash prompt,<br> at least in current sid and when there is no other configuration files,<br>
i.e. from SuSE Linux. So, in my opinion, the bash maintainer has done<br> everything possible to document this.<br> <br> I did the required changes for you, please substitute the paragraph that<br> sets $PS1 in your /etc/profile with the following to fix this<br>
misconfiguration and thus make multiple lines in bash work again:<br> <br> if [ "$PS1" ]; then<br> if [ "$BASH" ]; then<br> #PS1='\u@\h:\w\$ '<br> PS1="\[\033[01;31m\]\u@\h:\w\$ \[\033[0m\]"<br>
else<br> if [ "`id -u`" -eq 0 ]; then<br> #PS1='# '<br> PS1="\[\033[01;31m\]# \[\033[0m\]"<br> else<br> #PS1='$ '<br> PS1="\[\033[01;31m\]$ \[\033[0m\]"<br>
fi<br> fi<br> fi<br> <br> I hope you are satisfied with this answer and I'm closing this bug now.<br> <br> <br> Regards,<br> <br>Carsten<br> </blockquote></div><br>