bug-bash
[Top][All Lists]
Advanced

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

Re: off by one in wrapping long lines in bash-3.1


From: Chet Ramey
Subject: Re: off by one in wrapping long lines in bash-3.1
Date: Fri, 13 Jan 2006 21:16:32 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

Mike Frysinger wrote:
> On Thursday 12 January 2006 14:21, Chet Ramey wrote:
>>> Repeat-By:
>>>  - run 'bash'
>>>  - hold down a letter until it gets to the edge of the terminal
>>>  - observe the line wrapping too soon and overwriting current line
>>>  - hit enter/resize terminal/etc...
>>>  - hold down a letter until it gets to the edge of the terminal
>>>  - observe the line wrapping properly now
>> I can't reproduce it on MacOS X or Linux, using Terminal, xterm, or
>> aterm.  It sounds like readline is getting an incorrect value for
>> the terminal autowrap capability.
> 
> so there's no confusion, here's a screen shot of Eterm:
> http://dev.gentoo.org/~vapier/bash-no-wrap.png
> 
> i have ncurses-5.5 / readline-5.1 installed on both my Gentoo/Debian 
> machines ... i normally use Eterm, but i tried xterm, gnome-terminal, aterm, 
> rxvt, screen, and the linux console and got the same incorrect results ...

I don't normally use Linux, but I do test on a RHEL3 box with
ncurses-5.3.  Using Terminal, xterm or aterm and sshing to that box
doesn't produce any incorrect line wrapping behavior.

Someone who can reproduce this is going to have to gdb bash, attach to
the shell producing the bad behavior, and find out what _rl_screenwidth
and _rl_term_autowrap are set to.

There are differences in prompt strings, locales, multibyte characters
and so on that could figure into the mix, too.

Until I get something I can reproduce, there will be little progress
in figuring this out.

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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