On Friday 13 January 2006 22:02, Mike Frysinger wrote:
> 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.
>
> [EMAIL PROTECTED] 0 ~ $ gdb bash
> (gdb) print _rl_screenwidth
> $1 = 79
> (gdb) print _rl_term_autowrap
> $2 = 1
>
> running bash-3.0 through gdb sets _rl_screenwidth to 80 and
> _rl_term_autowrap to 1

a bit more useful, running bash with a watch on _rl_screenwidth shows that 
bash-3.0 has a few more function calls made in readline ... both logs 
attached
-mike

Attachment: log-3.0
Description: Binary data

Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) watch _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
(gdb) run
Starting program: /home/vapier/bash-3.1 
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth
Hardware watchpoint 1: _rl_screenwidth

Old value = 0
New value = 80
_rl_set_screen_size (rows=24, cols=80) at terminal.c:282
        in terminal.c
(gdb) c
Continuing.
Hardware watchpoint 1: _rl_screenwidth

Old value = 80
New value = 79
_rl_set_screen_size (rows=24, cols=80) at terminal.c:286
286     in terminal.c
(gdb) c
Continuing.
Hardware watchpoint 1: _rl_screenwidth

Old value = 79
New value = 80
_rl_set_screen_size (rows=24, cols=80) at terminal.c:282
282     in terminal.c
(gdb) c
Continuing.
Hardware watchpoint 1: _rl_screenwidth

Old value = 80
New value = 79
_rl_set_screen_size (rows=24, cols=80) at terminal.c:286
286     in terminal.c
(gdb) c
Continuing.
]0;[EMAIL PROTECTED]:~
Program exited normally.
(gdb) 
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to