bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Prompt w/ Newline and Linewrap (bash 3.0)


From: Marty Combs
Subject: Prompt w/ Newline and Linewrap (bash 3.0)
Date: Wed, 29 Dec 2004 15:51:27 -0800 (PST)

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.

marty :-)

----------
To announce that there must be no criticism of the President, or that
we are to stand by the President, right or wrong, is not only
unpatriotic and servile, but is morally treasonable to the American
public.

  -Theodore Roosevelt, 26th US President (1858-1919)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]