This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bash & $PS1 (display error)


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> '
#line2
mkdir -p
/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp
/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp
#line3
cd
/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp
/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp

When I run this (whether it be in rxvt or in the NT console) I get a
prompt that looks like this:
/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp/tmp
/tmp/tmp/tmp/tmp/tmp/tmp/tmp(#1)
/tmp(#2)
/tmp/tmp/tmp/tmp/tmp>

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
Software Designer
Tropic Networks

Attachment: cygcheck.txt
Description: cygcheck.txt

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]