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: Mike Frysinger
Subject: Re: off by one in wrapping long lines in bash-3.1
Date: Fri, 13 Jan 2006 22:02:55 -0500
User-agent: KMail/1.9

On Friday 13 January 2006 21:16, Chet Ramey wrote:
> 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.

vapier@vapier 0 ~ $ gdb bash
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /bin/bash 
(no debugging symbols found)
vapier@vapier 0 ~ $ 
Program received signal SIGINT, Interrupt.
0x00002cd9bb741f22 in __read_nocancel () from /lib/libc.so.6
(gdb) print _rl_screenwidth
$1 = 79
(gdb) print _rl_term_autowrap 
$2 = 1
(gdb) 

running bash-3.0 through gdb sets _rl_screenwidth to 80 and _rl_term_autowrap 
to 1

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

all of my locales are C as ASCII satisfies my needs :)
-mike




reply via email to

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