Mailinglist Archive: opensuse-bugs (3112 mails)

< Previous Next >
[Bug 703682] New: bash completion ignores CDPATH settings
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 4 Jul 2011 10:09:23 +0000
  • Message-id: <>

Summary: bash completion ignores CDPATH settings
Classification: openSUSE
Product: openSUSE 11.4
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.4
Status: NEW
Severity: Major
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: DOlsson@xxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101

Having set CDPATH does not work with bash completion any more (worked in
openSUSE 11.3).

My CDPATH has been set to:


in order to allow for an easy and fast access to my various directories using
"cd" or "pushd".

Now, when e.g. being in one of my development projects:

$ pwd

I want to get to my "Music" or "Documents" directory resp. their contents:

$ cd M<tab>

Hmmm, what about "cd Mu<tab>":

$ cd Mu<tab>

results in nothing -- not even with multiple <tab>s, nor does

$ cd D<tab>

Under openSUSE 11.3, I would have gotten

$ cd Mu<tab> => cd Music/


$ cd D<tab> => <nothing>, but
$ cd D<tab><tab>
Desktop Documents Downloads

Reproducible: Always

Steps to Reproduce:
1. A freshly install openSUSE 11.4
2. Login as a normal (or root) user
3. Setup CDPATH, e.g. CDPATH=.:~:~/sources
4. Do:
cd /tmp
cd so<tab>
cd so<tab><tab>
and observe that this is neither expanded to "sources/" nor is a list of
choices presented (by double <tab>).
Actual Results:
$ cd so<tab>
$ cd so<tab><tab>
results in nothing.

Expected Results:
$ cd so<tab>
$ cd sources/
$ cd so<tab><tab>
sources something

In completion under openSUSE 11.3 respected the setting of CDPATH as documented
in bash manual.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >