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: <bug-703682-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=703682

https://bugzilla.novell.com/show_bug.cgi?id=703682#c0


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
Firefox/5.0

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

My CDPATH has been set to:

:/home/dolsson:/home/dolsson/tmp:/home/dolsson/bin:/home/dolsson/sources:/home/dolsson/sources/ADMIN:/home/dolsson/sources/loke.local-net:/home/dolsson/sources/src:/home/dolsson/Documents

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
~dolsson/.../branches/DBAG/packaging

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

$ cd M<tab>
Makefile

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

$ cd Mu<tab>

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

$ cd D<tab>

work.
Under openSUSE 11.3, I would have gotten

$ cd Mu<tab> => cd Music/

resp.

$ 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>
-or-
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>
-or-
$ cd so<tab><tab>
results in nothing.

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

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

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >