Red Hat Bugzilla – Bug 61046
using [TAB] along with the "cd" command should only regard directories
Last modified: 2007-04-18 12:40:53 EDT
Description of Problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set up a directory with 2 empty txt files called: Linux-1 ; Linux-2 and then
a directory called Linux-dir
2. type "cd Li" ; press tab
Actual Results: "Linux-" is filled in, and there's a beep
Expected Results: only the directory "Linux-dir" should be regarded and filled
in directly since you use "cd" as command
Additional Information: It should be the same for mkdir, rmdir and possibly some
Not "mkdir" of course, taking back.
bash itself won't ever do this because it's expensive (parsing everything on tab).
It can be done using the bash-completions package from rawhide, though.