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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=R0fb9gGQYuq5bIDjbobG5BEdy9y39n SmBuVvqXQDP+uBSERM2sBxSdouGJsAnDTajvlaj5oR156c/Wv1vJwADJYzplbnlp s6S0Zr7NPjFfVdtJJkI32la/Q3cCshJKhSEGNw8emNPNXuW2YI9gCaFz78OsntJ6 8KIwwyltiVujw= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=qBbeJSLZDRh1hcOEZrPIf7VyH7c=; b=LXYX Pye81vFaiwyl5motaEXyhApgFsTaHavW7N/ucVwrNpR5wN2JJVt8ch54oR/G+U+b Y23sBIiiDslMTilqrTiNvMNHaxpEisbEBSg40q3hi7YxZeY7LhthXnvymD0sWanq 2OgjUPcFNR0iuOTY9k30wg5EFz+AMbee/+jfcL8= 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=4.8 required=5.0 tests=AWL,BAYES_00,FORGED_YAHOO_RCVD,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: George Prekas Subject: Re: bash / readline problem with cd, directories with spaces, nospace Date: Thu, 19 Mar 2015 15:56:04 +0100 Lines: 81 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: X-IsSubscribed: yes On 23/02/2015 17:14, Henry S. Thompson wrote: > [OK, here's the message body I _thought_ I sent with the cygcheck > output which is all that appears to have been received...] > > I _think_ this is a regression, but my memory for this sort of thing > is terrible. > > With libreadline7-6.3.8-1, given that I have > > /c/Program Files > /c/Program Files (x86) > /c/ProgramData > > If I type > > > cd /c/Prog[tab] > > I get [bell/flash] and > > > cd /c/Program > > All correct so far > > > cd /c/Program[tab] > [bell/flash] > > cd /c/Program[tab again] > Program Files/ Program Files (x86)/ ProgramData/ > > cd /c/Program > > Still as expected > > > cd /c/Program\ [tab] > [bell/flash] > > _Not_ as expected, should give > > Program Files/ Program Files (x86)/ > > cd /c/Program\ Files > > Overriding the standard (Linux too, where I cannot reproduce the problem) > complete -o nospace -F _cd cd > with > complete -o default -F _cd cd > fixes this, but I don't _think_ it used to happen. > > Related (?) problem > > > cd /c/'Prog'[tab] > > should result in > > > cd /c/Program > > but in fact just gives [bell/flash] > > Can anyone reproduce, either correct behaviour with earlier readline > and/or earlier bash-completion than 1.3-1, or same problem as me? > > Or have I inadvertently screwed something up? > > Thanks > > ht > Hi Henry, I had the same trouble as you describe and I was using your workaround, but then I realized that find is broken in the same way. So, I did some research and found out that Debian and Ubuntu have solved this problem by patching /etc/bash_completion as described in the following URLs: I think Cygwin should incorporate the specified patch file in its bash-completion package. Regards, George -- 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