completion-ignore-case do not work with ~ (if there are no command)

Bug #243489 reported by Aapo Rantalainen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bash

I have
bind 'set completion-ignore-case on'
in my .bashrc.

What works:
cd ~/des[TAB]
 -> cd /home/rantalai/Desktop/

When I want run script/command in my Desktop

What I excepted:
~/des[TAB]
 -> /home/rantalai/Desktop/

What happens:
~/des[TAB]
 -> ~/desktop

So word is right but case isn't.

If I wrote (this works)
~/Des[TAB]
 -> ~/Desktop/

MORE:
There are ~/Desktop/aBBa.sh (and nothing else in this directory)
I wrote (this works)
~/Desktop/a[TAB]
 -> ~/Desktop/aBBa.sh

I wrote (one lower b more)
~/Desktop/ab[TAB]
 -> ~/Desktop/abBa.sh

Case is not corrected.
-------------------
Happens with ubuntu 8.04, bash 3.2-0ubuntu18
and ubuntu 7.10, bash 3.2-0ubuntu11

Revision history for this message
YoBoY (yoboy-leguesh) wrote :

I have also commented the bash-completion to see if it's not the cause of this issue but not.

when we start with a "~/ " the completion is not in the right case like described and it add a space after the completion.

Tested on Ubuntu intrepid ibex 8.10
Package: bash
Architecture: i386
Version: 3.2-4ubuntu1

need to be tested with Jaunty.

Changed in bash:
status: New → Confirmed
Revision history for this message
O. Emmerson (oemmerson) wrote :

'set completion-ignore-case on' isn't working for me at all in jaunty.

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :

Confirmed on Jaunty.
With same tests than first post, with same results.

bash: 3.2-5ubuntu1

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :

On Natty with bash 4.2-0ubuntu3 this is working now.

'set completion-ignore-case on'

cd ~/Desktop
touch aBBa.sh
chmod a+x aBBa.sh
cd
~/Desktop/ab[TAB] #wrong case here
  -> ~/Desktop/aBBa.sh #case corrected (as excepted)

Revision history for this message
Aaron Tate (fenix) wrote :

On Karmic 9.10:

bind 'set completion-ignore-case on'

this works for me.

Changed in bash (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.