Problem with bash completion

Bug #229876 reported by Ittay Dror
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: bash

see http://www.nabble.com/Fwd%3A-Problem-with-bash-completion-tt16019987.html (initial message pasted below)

this happens to me (and i'm pretty sure that in a different scenario than the one described below) and is very annoying. can you please update the bash package to the one where this bug doesn't happen?

from the thread:
From: David Rothenberger
Subject: Problem with bash completion

Sometimes bash gets confused and starts adding a slash at the end of
files when I do tab-completion. Here's a simple reproduction script:

~ > bash --noprofile --norc -i
bash-3.2$ mkdir /tmp/bash-problem
bash-3.2$ cd /tmp/bash-problem
bash-3.2$ mkdir d
bash-3.2$ touch x
bash-3.2$ chmod 755 x
bash-3.2$ ./x <---- tab after x completes correctly
bash-3.2$ ./d/ <---- ditto with d
bash: ./d/: is a directory
bash-3.2$ "$(ls ./d/)" <---- pressed tab after d
bash: : command not found
bash-3.2$ ./x/ <---- tab after x now adds slash

Once the shell starts doing this, it keeps doing it. Restarting bash
solves the problem.

Revision history for this message
hdante (hdante) wrote :

I have the same problem here. The (non-deterministic) steps to reproduce are:

1. Start bash
2. cat someprefixoffilename[TAB]
3. The name is completed correctly
4. Work
5. cat someprefixoffilename[TAB] again
6. This time, the filename comes with a slash "/" in the end
7. (obviously) cat gives an error saying that the directory was not found

Revision history for this message
Mika Fischer (zoop) wrote :

Confirmed on hardy with bash 3.2-0ubuntu18.

Changed in bash:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
tobs12 (hans1215) wrote :

I have the same problem with bash 3.2-0ubuntu18 and not bash-completion installed.

I have a python script printing "export PATH=...:$PATH" .
I do eval `script.py` in bash and sometimes the behaviour of bash completion is buggy as described above.
I tried to hunt this down and find a reason for this but did not succeed so far.

Revision history for this message
tobs12 (hans1215) wrote :

I just noticed this also on Jaunty:

'bash --version' says:
GNU bash, version 3.2.48(1)-release (i486-pc-linux-gnu)

Package:
bash 3.2-5ubuntu1

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.