bug-bash
[Top][All Lists]
Advanced

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

Re: Prompt w/ Newline and Linewrap (bash 3.0)


From: Chet Ramey
Subject: Re: Prompt w/ Newline and Linewrap (bash 3.0)
Date: Thu, 30 Dec 2004 08:39:15 -0500
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Marty Combs wrote:
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.

Please apply patch 2 to bash-3.0.

ftp://ftp.cwru.edu/pub/bash/bash-3.0-patches/bash30-002

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU address@hidden http://tiswww.tis.cwru.edu/~chet/




reply via email to

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