← Back to team overview

registry team mailing list archive

[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign

 

Hello,

I am using ubuntu 9.04 and I did the change as gjzeus suggested:

$ diff /etc/bash_completion /etc/bash_completion.backup 
3171c3171
<     complete -F _cd $nospace cd
---
>     complete -F _cd $nospace $filenames cd

The problem reported here is solved but I observed a I found a side
effect when "cd" is used to navigate through a chain of directories that
just contain one directory.

Lets say I have the following structure:
example$ tree
.
`-- levelOne
    `-- levelTwo
        `-- levelThree

Beofre this change if it was typed:
example$ cd level [tab][tab][tab]
the command was expanded itself by the shell (only if there was a single directory in the current directory)

With this change, when tab is pressed it just displays the name of the directory that is in the current directory instead of auto completing the command:
example$ cd levelOne [tab]
levelOne

Do you observe this behaviour as well?

Thanks,
Juan Garibay

-- 
Bash command completion puts backslash in front of beginning dollar sign
https://bugs.launchpad.net/bugs/177243
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Debian.