readline: edit (mode:vi) means eol unreachable

2007-02-01 Thread Hugh Sasse
I have a problem with readline I think -- my setup is best described:

valyus hgs hgs 30 $ echo $BASH_VERSION
3.2.9(1)-release
valyus hgs hgs 31 $ cat ~/.inputrc
set editing-mode vi
valyus hgs hgs 32 $ echo $TERM
xterm
valyus hgs hgs 33 $ stty -a
speed 38400 baud; rows 24; columns 80;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ;
eol2 = ; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; status = ; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
valyus hgs hgs 34 $

I am using PuTTY to this machine over ssh.
The symptoms of my problem are that I can type a line of input, I
can then edit it directly using the cursor keys (without hitting
escape to do so) and the line changes length correctly, but I then
cannot move my cursor past the last character of the line in order
to append more text.  To solve this I hit $a and insert a space
at the end. My cursor remains on top of the space, whereas I expect
it to be placed after the space.  (Would it be any use sending you
the typescript from script to illustrate this given that it doesn't
record what the screen looks like?)

I get the same symptoms on the sun (neelix below) as I do on the Dec
Alpha system (valyus) detailed above:

neelix hgs hgs 61 $ echo $BASH_VERSION
3.2.9(1)-release
neelix hgs hgs 62 $ echo $TERM
xterm-new
neelix hgs hgs 63 $ stty -a
speed 38400 baud;
rows = 24; columns = 80; ypixels = 0; xpixels = 0;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = ; eol2 = ; swtch = ;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff 
-parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
neelix hgs hgs 64 $ 

I'm using PuTTY over ssh in both cases.  Vim works correctly on both 
machines.
So is this an abuse of readline (I should not be doing cursor motion
while in insert mode? I can do that in Vim, and bash doesn't bleep
or flash at me what I attempt to use the cursor keys in insert
mode.) and therefore this is outside the scope of the program, or
have I found a buglet?  If the latter, what other information would be
of use?  I have copied the .inputrc from one machine to the other, so
neelix hgs hgs 64 $ cat ~/.inputrc
set editing-mode vi
You have new mail in /var/mail//hgs
neelix hgs hgs 65 $

(OT: how do I turn off that new mail notice?  shopt -p tells me 
 shopt -u mailwarn
so it seems to be off...)

Thank you.
Hugh



___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: readline: edit (mode:vi) means eol unreachable

2007-02-01 Thread Chet Ramey
Hugh Sasse wrote:
> I have a problem with readline I think -- my setup is best described:

Sorry, I can't reproduce this with xterm or Mac OS X Terminal over ssh.
I don't have or use Putty.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
   Live Strong.  No day but today.
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: readline: edit (mode:vi) means eol unreachable

2007-02-01 Thread Hugh Sasse
On Thu, 1 Feb 2007, Chet Ramey wrote:

> Hugh Sasse wrote:
> > I have a problem with readline I think -- my setup is best described:
> 
> Sorry, I can't reproduce this with xterm or Mac OS X Terminal over ssh.
> I don't have or use Putty.

Well, given that I've not had this problem with vi or vim, so bash
seems to be doing something different, (which could also be correct
of course. These things are tricky to sort out since every terminal
has subtle differences).  So is there any software I can run that
would outdo script (-> a typescript file) in its ability to debug
this?

If I invoke an xterm from my session, using it with Exceed
version 8, I get a different kind of bug, namely that moving left
with the cursor key takes me out of insert mode and removes the
rightmost character from the display. Indeed, if I type a line of
text then

a

repeatedly, I can delete the whole line. Meanwhile, in tcsh the cursor
behaves normally, using either terminal. 

I see that a terminfo entry for PuTTY is on the wishlist. So meanwhile
I've asked them to re-examine this.  
> 
> Chet
> 
Thank you,
Hugh


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash