* 64-bit bash/readline: vi-mode "dd" command fails
@ 2014-01-24 17:12 Jason Bucata
2014-01-30 16:03 ` Jason Bucata
0 siblings, 1 reply; 2+ messages in thread
From: Jason Bucata @ 2014-01-24 17:12 UTC (permalink / raw)
To: cygwin
I'm having the same trouble under 64-bit bash/readline as this thread from
October:
http://cygwin.com/ml/cygwin/2013-10/msg00165.html
Briefly, under vi mode ("set -o vi") the "dd" command doesn't delete the
entire line, but only moves the cursor to the start of the line.
This is bash-4.1.11(2) and libreadline7 version 6.2-1. As with the OPs,
this worked fine under 32-bit (I'd have to go look on my old laptop to find
the versions there).
Some other things I found:
"cc" and "yy" exhibit the same problem... they don't do their intended
functions but instead act like the "0" key and go to the start of the line.
I tried doing a bind to make "dd" work as expected, and I could do so, but
then other "d" commands stop working: "dw", "dW", "dt..." etc. I don't know
if that's another symptom of this bug or if it's because my inputrc-foo is
severly lacking.
I tried installing gdb and the debug symbols and source code, but I couldn't
convince gdb to set a breakpoint in the relevant-looking functions in
libreadline. My C skills are passable but my gdb skills are severely rusty,
and I've never tried using either of them on the Cygwin platform.
This bug is a major nuisance for my daily use of bash. I'm happy to try to
help debug this if I can, though as I found, my skills might not be up to
scratch on this one.
Jason B.
--
Half the harm that is done in this world is due to people who want to feel
important.
-- T. S. Eliot
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 64-bit bash/readline: vi-mode "dd" command fails
2014-01-24 17:12 64-bit bash/readline: vi-mode "dd" command fails Jason Bucata
@ 2014-01-30 16:03 ` Jason Bucata
0 siblings, 0 replies; 2+ messages in thread
From: Jason Bucata @ 2014-01-30 16:03 UTC (permalink / raw)
To: cygwin
On Fri, Jan 24, 2014 at 11:12:32AM -0600, Jason Bucata wrote:
> I'm having the same trouble under 64-bit bash/readline as this thread from
> October:
> http://cygwin.com/ml/cygwin/2013-10/msg00165.html
>
> Briefly, under vi mode ("set -o vi") the "dd" command doesn't delete the
> entire line, but only moves the cursor to the start of the line.
I just found this patch floating around on the net:
http://pkgsrc.se/files.php?messageId=20140112133025.3311C96@cvs.netbsd.org
>>>>>
Log Message:
pull in fix from readline git repo (will be in 6.3) for vi mode and the
'cc', 'dd', 'yy' commands. Also correctly build examples for testing.
<<<<<
I couldn't find it directly in the readline git repository though.
Jason B.
--
Half the harm that is done in this world is due to people who want to feel
important.
-- T. S. Eliot
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-30 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-24 17:12 64-bit bash/readline: vi-mode "dd" command fails Jason Bucata
2014-01-30 16:03 ` Jason Bucata
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).