delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/23/11:14:55

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:subject:references:from:date:in-reply-to
:message-id:mime-version:content-type; q=dns; s=default; b=nOkjq
9BarQ99cpZVO91ekTeF4OiHK9lGUsyaW6o0sYSlE5f7yVS7nyW+SZ/BPQalzaPU5
Hmrnt8lPvKC4BsLM/VB97k6jViyOyr/f8RbnCwiy3sV5CHI/N1pdH4uVKpUJi3gj
tdq6dufRy0pfj6WspVtPyIEjmWPdZFmjn45TP4=
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:subject:references:from:date:in-reply-to
:message-id:mime-version:content-type; s=default; bh=da45xKdM2lE
IqFWQUpmCWZa+Cw0=; b=QAlqapqXh0RS//NBGBZmT8iR+xg2kNFHeZUQhiBlzxt
AgTYCn3/4//PHxFEvJOd4MeXBF4FuDKWlkd4R44BP8fW7wUb+I0EkWGelVDDoE+0
9UxYMZqq2fnHevCk3VAGB2j/Asm+bD+GdfyQ9N3VJxDqrqXLibAoPniLY5owrNxA
=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-0.0 required=5.0 tests=AWL,BAYES_50,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: treacle.ucs.ed.ac.uk
To: cygwin AT cygwin DOT com
Subject: Re: bash / readline problem with cd, directories with spaces, nospace
References: <f5b61asboki DOT fsf AT troutbeck DOT inf DOT ed DOT ac DOT uk>
From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson)
Date: Mon, 23 Feb 2015 16:14:29 +0000
In-Reply-To: <f5b61asboki.fsf@troutbeck.inf.ed.ac.uk> (Henry S. Thompson's message of "Mon\, 23 Feb 2015 16\:05\:49 +0000")
Message-ID: <f5bwq38a9lm.fsf@troutbeck.inf.ed.ac.uk>
User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b33 (linux)
MIME-Version: 1.0
X-Edinburgh-Scanned: at treacle.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-IsSubscribed: yes

[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
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht AT inf DOT ed DOT ac DOT uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019