X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=epFdsc2vdbOfxpkIsGcjCG1kzcMLf 3ICfnvE2cNv+hjlWk57psMg4A35dQ+bhdtf2yjgc5uiscsxY42qFPGAzG/4TAevj uBjCy7y7ky9LsNBc3KA3WzxaRlpoLLRkUAbLWozQ8OmCHBHfqPluDR55ufxNcfSv kNfOBJ6Uk88GTY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=px9BaGKilAUvBbXAcIYmfL+1++A=; b=Voz xJb+WR2VEB8xxD1XebX18WsVej5GB0eirphXpuTwpKzTRTW8/bJ5FVZ7tp7XrGsa gJbJDYzsvVaSaphvMzsucCN6I4S0Zh8f0YyXKYJd5Fox/zHmH+Fz8BD9H7E6zNFx 2wh0RJlXVT4yt8yi15vKq+PiwvYQ9/gKiymQdAXc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 X-WS-COS: WSOB803 X-Cloudmark-Category: undefined Date: Fri, 24 Jan 2014 11:12:32 -0600 From: Jason Bucata To: cygwin AT cygwin DOT 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) 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