Ubuntu

Bash-completion add extra space char

Reported by Norbert on 2011-05-02

This bug report was converted into a question: question #155411: Bash-completion add extra space char.

40
This bug affects 9 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: bash-completion

When I enter some command with argument in the terminal and press <Tab> bash-completion adds extra space to the end of command.
I.e. I want to open /etc/issue with cat (full command is "cat /etc/issue").
What I do: "cat /et <Tab>". After this I get "cat /etc " (yes, with extra space).
Is it OK?

ProblemType: Question
DistroRelease: Ubuntu 11.04
Package: bash-completion 1:1.3-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
CheckboxSubmission: a3c9de473bf7a483a92609c6b20d2aee
CheckboxSystem: b633b4f40868d491c2ae5b50030ce6f3
Date: Mon May 2 11:11:35 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: Upgraded to natty on 2011-05-01 (0 days ago)

Norbert (nrbrtx) wrote :
Norbert (nrbrtx) on 2011-05-02
Changed in bash-completion (Ubuntu):
status: New → Invalid
status: Invalid → Opinion
description: updated
description: updated
Changed in bash-completion (Ubuntu):
status: Opinion → Invalid
crys (schaefec) wrote :

Same here. With this behaviour, bash completion is hardly usable any more for me.

Norbert (nrbrtx) wrote :

Reinstalling did not help me.

If I try 'ls /et' -> <Tab> -> I got '/etc ' (with extra space). It's abnormal.
My ~/.bashrc is in a attachment.

Changed in bash-completion (Ubuntu):
status: Invalid → Confirmed
Groove (groove-c) wrote :

does happen here also with a fresh bashrc from /etc/skel

Norbert (nrbrtx) wrote :

Yes, it is.
/etc/skel/.bashrc and ~/.bashrc now identical, before the differ by four lines about alert alias (85-87).

Lekensteyn (lekensteyn) wrote :

Can you send your /etc/bash_completion file and /etc/bash_completion.d directory? Run this command to generate a tarball:

tar czf bash_completion.tar.gz /etc/bash_completion /etc/bash_completion.d

Norbert (nrbrtx) wrote :

Here it is.

Shuduo Sang (sangshuduo) wrote :

Someone who use arch linux reported this issue too and found it can be fixed by comment _filedir() off in /bash/bash_completion.d/acroread.sh.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions