bash-completion with cp, ls, etc putting spaces after dir names

Bug #748733 reported by James Ward
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: bash-completion

I have the latest natty and when I enable bash completion the tab completion of directory names stops working when using ls, cp, etc on the command line.

Assuming I have a dir path like: /foo/bar/asdf

If I type: "/foo" and then hit tab I get "/foo/" - which works as expected. But if I type "ls /foo" and hit tab I get "ls /foo " - the trailing character after foo is a space, not a forward slash.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: bash-completion 1:1.3-1ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
Date: Sat Apr 2 18:22:26 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100803.1)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
James Ward (jamesward) wrote :
Revision history for this message
Joachim Nilsson (troglobit) wrote :

Yes, this is extremely annoying! (Not sure thought if it's caused by this package...)

Kalle Valo (kvalo)
Changed in bash-completion (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Magoun (smagoun) wrote :

@James, do you have the acroread package installed? This may be a duplicate of bug 716008, which describes this (mis)behavior caused by the acroread package. I found the workaround in bug 716008 solved this problem.

Revision history for this message
James Ward (jamesward) wrote :

Nice catch! Yep, the workaround in 716008 works. So indeed this is a bug in acroread. Thanks!

Revision history for this message
Joachim Nilsson (troglobit) wrote :

Thanks for the quick reply. Indeed the mentioned workaround/fix to the acroread package's bash completion fixes this! (Hoping for an "official" fix in acroread.)

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.