From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19356 invoked by alias); 24 Jan 2014 17:12:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19333 invoked by uid 89); 24 Jan 2014 17:12:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FROM_12LTRDOM,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: pacmmta55.windstream.net Received: from pacmmta55-sus.windstream.net (HELO pacmmta55.windstream.net) (162.39.147.245) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Jan 2014 17:12:35 +0000 Received: from localhost ([75.91.241.153]) by pacmmta55 with pacmmta55 id HtCY1n00Q3KH5Sb01tCY3o; Fri, 24 Jan 2014 12:12:32 -0500 X-WS-COS: WSOB803 X-Cloudmark-Category: undefined Date: Fri, 24 Jan 2014 17:12:00 -0000 From: Jason Bucata To: cygwin@cygwin.com Subject: 64-bit bash/readline: vi-mode "dd" command fails Message-ID: <20140124171232.GA13671@windstream.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-01/txt/msg00391.txt.bz2 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