[Bash-completion-devel] [bash-completion-Bugs][314240] bash completion for builtin command "pushd" is missing in package "bash-completion"

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Mon May 13 17:27:33 UTC 2013


bash-completion-Bugs item #314240, was changed at 2013-05-13 19:27 by Dennis Olsson
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314240&group_id=100114

Status: Open
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: bash completion for builtin command "pushd" is missing in package "bash-completion" 
Distribution: --Distribution-Agnostic--
Originally reported in: None
Milestone: None
Status: None
Original bug number: 818365


Initial Comment:
Anonymous message posted by DOlsson at WEB.de

This bug report originated in Bugzilla for openSUSE 12.3 under https://bugzilla.novell.com/show_bug.cgi?id=818365

After having installed the "bash-completion" package, the "bash" no longer performs completion of the "pushd" builtin command:

$ cd Do<TAB>
Documents/  Domains/    Downloads/

whereas

$ pushd Do<TAB>
<nothing returned!!>

Reproducible: Always

Steps to Reproduce:
1. Install the "bash-completion" package using YaST or zypper.
   On my system the package "bash-completion-2.0-2.1.1.noarch" was installed.
2. Start a "bash" session
3. In the home directory of a newly created user account do:
   $ mkdir Documents Domains Downloads
   $ cd Do<TAB>
   $ cd Do<CTRL-C>
   $ pushd Do<TAB>
Actual Results:  
$ cd Do<TAB>
Documents/  Domains/    Downloads/
$ cd Do<CTRL-C>
$ pushd Do<TAB>
<Nothing is returned!!>

Expected Results:  
$ cd Do<TAB>
Documents/  Domains/    Downloads/
$ cd Do<CTRL-C>
$ pushd Do<TAB>
Documents/  Domains/    Downloads/

----------------------------------------------------------------------

Comment By: Dennis Olsson (dolsson-guest)
Date: 2013-05-13 19:27

Message:
Suggested fix:

--------------------------------* snip *----------------------------------- --
--- bash_completion
+++ bash_completion     2013-05-13 06:58:59.717922133 +0000
@@ -1620,6 +1620,8 @@ if shopt -q cdable_vars; then
 else
     complete -F _cd -o nospace cd
 fi
+complete -F _cd -o nospace rmdir pushd chroot
+complete -F _cd -o nospace -o dirnames mkdir

 # a wrapper method for the next one, when the offset is unknown
 _command()
--------------------------------* snap *-------------------------------------

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314240&group_id=100114



More information about the Bash-completion-devel mailing list