delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.7 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4CD44187.6000506@acm.org> |
Date: | Fri, 05 Nov 2010 10:40:23 -0700 |
From: | David Rothenberger <daveroth AT acm DOT org> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
MIME-Version: | 1.0 |
To: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: File name completion broken in 1.7.7? |
References: | <77C3D8678FF44B69AE06DD6975C7CEAA AT ahallpc> |
In-Reply-To: | <77C3D8678FF44B69AE06DD6975C7CEAA@ahallpc> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
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 |
On 11/5/2010 10:13 AM, Andy Hall wrote: > I have recently upgraded to 1.7.7 from 1.5.X. In 1.5.X, it used to be that > in bash I could type lines like > > P4 edit hydra_c > > and hit the tab key to complete the file name. A command like > > p4 edit hydra_config > > would be then executed. > > In 1.7.7, when I type > > P4 edit hydra_c > > and hit the tab key to complete the file name, I get the text "bash: > _get_comp_words_by_ref(): `preprev': unknown argument" > followed by the missing part of the filename. I believe the bash-completion package is installed. It includes /etc/bash_completion.d/p4 which is causing your problems. The version of bash-completion included with 1.5 was not enabled by default, but the current version is. This is why the problem surfaced with 1.7. (Note that it has nothing to do with the Cygwin version but the version of bash-completion instead.) You can uninstall the bash-completion package if you don't want it at all (which is probably true since you hadn't enabled it in 1.5) or remove the /etc/bash_completion.d/p4 file. (Personally, I created a /etc/bash_completion.d/disabled directory and moved the files I didn't want there, for performance. I suspect I'll have to manually repeat this every time I update bash-completion. There may be a better "official" way to disable parts of bash-completion.) -- David Rothenberger ---- daveroth AT acm DOT org Finagle's First Law: If an experiment works, something has gone wrong. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |