programmable completion not enabled for non-login shells in default install [Maverick]

Bug #663407 reported by Stevo Vukovic
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnome-terminal

After fresh install of Maverick (64 bit Final Ubuntu 10.10 on 2010.10.10, HP laptop, Intel dual-core processor) bash completion works only for first word, like just for "sudo". For "sudo apt-g" there is no result, not even for 2 press on Tab. On same USB live session from install disk auto completion works flawlessly.
On my desktop I have had install Ubuntu 10.10 RC (updated regularly) and auto completion works.
MD5SUM are correct.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gnome-terminal 2.32.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Tue Oct 19 19:20:43 2010
ExecutablePath: /usr/bin/gnome-terminal
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
XsessionErrors:
 (polkit-gnome-authentication-agent-1:1574): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:1570): GConf-CRITICAL **: gconf_value_free: assertion `value != NULL' failed

Revision history for this message
Stevo Vukovic (stevovukovic) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

that's not a gnome-terminal issue.

affects: gnome-terminal (Ubuntu) → ubuntu
Revision history for this message
Stevo Vukovic (stevovukovic) wrote :

I acted as I was advised last time when I reported a bug. You do not have to be so rude. Your comment was unnecessary.

Book 'em Dano (heymrdjd)
affects: ubuntu → bash-completion (Ubuntu)
Revision history for this message
clemmy (luca-clem) wrote :

To enable bash competion in maverick:

open a terminal and type
sudo gedit /etc/bash.bashrc

find the lines
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi

uncomment them by removing the # character (the will look this way)
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

save the file, close gedit, close the terminal.

open th terminal again and bash completion should be work correctly

Revision history for this message
Philip Muškovac (yofel) wrote :

can you add your ~/.bashrc to this report please? bash_completion should be enabled there by default (no need to enable it in /etc/bash.bashrc which would work too of course)

~/.bashrc should have at the bottom:

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

Ken Sharp (kennybobs)
Changed in bash-completion (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for bash-completion (Ubuntu) because there has been no activity for 60 days.]

Changed in bash-completion (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Сергей (skaunov) wrote :

I'm confirming on Ubuntu 12.04 LTE at fresh VPS install.

Changed in bash-completion (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

works fine here on trusty and has always worked fine

Changed in bash-completion (Ubuntu):
status: Confirmed → Fix Released
summary: - ubuntu maverick - bash auto-completion (Tab) works only for first word
+ programmable completion not enabled for non-login shells in default
+ install [Maverick]
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.