completion fails when there are two directories that start with the same letters but one has a single quote

Bug #1485777 reported by Brian Brunswick
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

This is a regression in 14.04 LTS recreating #590829, I think its been broken by a recent update.
I've had to disable the bash-completion completely and just use the built-in completion.

Single quote is a really common character in my file names.

Effect is that a \' appended disappears when tab is pressed.

Description: Ubuntu 14.04.3 LTS
Release: 14.04

ii bash-completion 1:2.1-4 all programmable completion for the bash shell

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash-completion (Ubuntu):
status: New → Confirmed
Mathew Hodson (mhodson)
Changed in bash-completion (Ubuntu):
importance: Undecided → Medium
Changed in bash-completion (Debian):
status: Unknown → Confirmed
Mathew Hodson (mhodson)
no longer affects: bash-completion (Debian)
Mathew Hodson (mhodson)
tags: added: testcase trusty
Mathew Hodson (mhodson)
summary: - Fails to allow completion of filenames with ' single quote
+ completion fails when there are two directories that start with the same
+ letters but one has a single quote
Revision history for this message
Mathew Hodson (mhodson) wrote :

I can reproduce when there are two similar directories and one has a single quote.

$ mkdir "aa'bb"
$ mkdir "aardvark"
$ cd aa\'<tab>

The single quote and slash disappear when Tab is pressed.

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.