When I include a newline character in my prompt, the wrap point for
extended commands occurs as if the newline were not there.
For example, setting:
$ PS1="VERY LONG FANCY PROMPT\n"; export PS1
VERY LONG FANCY PROMPT
_
^cursor
If I begin typing in an 80 col width xterm...
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
^
First linewrap occurs here
which is 80 - prompt_length.
I have duplicated the problem by compiling bash 3.0 from tarball on both a
Redhat 8 and OpenBSD 3.6 system. They both exhibit the same symptoms.