Menu

#34 prompt wordwrap bug

open
nobody
5
2008-09-08
2008-09-08
No

I had a very descriptive prompt using this PS1 in .bashrc (PS1='\u@\h:\w\$ '). Note how it is \w (lists the whole path) not \W (just the current directory).

So once I would go into a deeper directories, the prompt would word wrap to the next line, then any command you type (letter by letter) on that line will be rewritten on a new line over and over again. It is not a pretty sight and I would think it fills up logs and degrades performance.

This is what it looks like:

[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx Xxxxxxxx)/Xx Xxxxxxx Xx Xxxx]>> curl -T 02* ft
[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx Xxxxxxxx)/Xx Xxxxxxx Xx Xxxx]>> curl -T 02* ft
[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx Xxxxxxxx)/Xx Xxxxxxx Xx Xxxx]>> curl -T 02* ft
[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx Xxxxxxxx)/Xx Xxxxxxx Xx Xxxx]>> curl -T 02* ft
[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx Xxxxxxxx)/Xx Xxxxxxx Xx Xxxx]>> curl -T 02* ft
[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx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xxxxx Xx Xxxx]>> curl -T 02* ft
[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx Xxxxxxxx)/Xx Xxxxxxx Xx Xxxx]>> curl -T 02* ft
[j4c@zeus ~/ftp/ZZZZZZZZZZZ.com/YYYYYY/audio/xxxxxx Xxxxxx/Xxxxxxxx Xxxxx (Xxxxxxx Xxxx Xxx Xxxxxx Xxxxx Xxxxxxxx)/Xx Xxxxxxx Xx Xxxx]>> curl -T 02* ftp://

Although I have changed the prompt to a less descriptive one, I know of a certain very popular hosting company that makes their PS1's very descriptive in default.

Thank you for the wonderful product otherwise.

Discussion


Log in to post a comment.