bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cd completion using aliased cd command


From: Chet Ramey
Subject: Re: cd completion using aliased cd command
Date: Wed, 17 Jul 2013 11:51:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 7/17/13 11:16 AM, Mark W. Johnson wrote:
> Chet,
> 
> I'm not familiar with the complete function.    I did execute complete -pr 
> and found the following line:
> 
>       complete -o nospace -F _cd cd
> 
> I never looked into what the rule does (perhaps this is something that gets 
> setup by Cygwin and not a bash default?), but I did conjecture that I was 
> having a name collision problem.   I changed my function _cd to __cd, and now 
> tab completion works as it did before.  Seems _cd is being defined in 
> /etc/bash_completion so my _cd was trashing this function and causing 
> auto-complete weirdness.

That's a good diagnosis. I think that's exactly what's happening.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]