This is the mail archive of the
mailing list for the Cygwin project.
RE: bash & $PS1 (display error)
- From: "Rolf Campbell" <rcampbell at tropicnetworks dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 31 Jan 2003 23:37:55 -0500
- Subject: RE: bash & $PS1 (display error)
My prompt is (from the script below) "PS1='$PWD> '". All of the
characters are 'printable' and none are \[\] enclosed.
> -----Original Message-----
> From: Randall R Schulz [mailto:firstname.lastname@example.org]
> Sent: Friday, January 31, 2003 11:01 PM
> To: email@example.com
> Subject: Re: bash & $PS1 (display error)
> Assuming some of your prompt is non-printing (escape
> sequences) offset
> those non-printing portions with \[backslash-escaped square
> That tells BASH (and / or the readline library it
> incorporates) not to
> count those portions for the purpose of wrapping the
> displayed input lines.
> Randall Schulz
> At 19:41 2003-01-31, Rolf Campbell wrote:
> >I've noticed several display problems with bash and prompts.
> Here's an
> >easy way to recreate one of them:
> >(I've marked the lines to alleviate the wrapping problem)
> >#line 1
> >PS1='$PWD> '
> >mkdir -p
> >When I run this (whether it be in rxvt or in the NT console) I get a
> >prompt that looks like this:
> >I've marked the original new-lines. (#1) in a correct wrap that
> >occurred at the edge of my display. (#2) is an incorrect wrap that
> >happens for no obvious reason.
> >This only seems to happen if the path is wider than the display.
> >-Rolf Campbell
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html