Completion of cp command adds space instead of slash to directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
When using tab-completion for the cp command, when completing directories, the completion inserts a space instead of a slash after the name. This causes much backspacing and retyping.
Expected behavior:
cp ~/src/pr<TAB>
cp ~/src/projects/
cp ~/src/projects/
cp ~/src/projects/
Actual behavior:
cp ~/src/pr<TAB> ==> ~/src/projects<
cp ~/src/projects <BACKSPACE>
cp ~/src/projects/
cp ~/src/projects/java <BACKSPACE>
cp ~/src/projects/
cp ~/src/projects/
This works as expected on Ubuntu 12.04 Server, and I'm pretty sure it used to work on Kubuntu 12.04 (what I am running) until relatively recently, maybe just a couple of weeks ago.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSign
Uname: Linux 3.2.0-34-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu15
Architecture: amd64
Date: Sat Dec 8 10:05:28 2012
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120424)
MarkForUpload: True
PackageArchitec
ProcEnviron:
LANGUAGE=
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in bash-completion (Ubuntu): | |
assignee: | nobody → Girish Sanenahalli (girish-cs7036) |
Changed in bash-completion (Ubuntu): | |
importance: | Undecided → Low |
assignee: | Girish Sanenahalli (girish-cs7036) → nobody |
I've never seen this, and it doesn't currently happen on Ubuntu 14.04. If you can still reproduce this, give us a testcase.
e.g.
mkdir -p foo/bar
touch foo/bar/baz
cp foo/b<tab>
or something.
But probably you have something bad in your ~/.bash_completion, or /etc/bash_ completion. d, or something, that's breaking programmable completion for other stuff.