When logged in as root to a fresh Ubuntu 10.04 distro, tab completion works as expected. Upon creating a new user with:
Code:
useradd -m name
… tab completion does not work for that account. Hitting tab gives whitespace. In addition, the prompt for the new account is different, despite having a virtually identical .bashrc as root.
diff /root/.bashrc /home/name/.bashrc gives:
Code:
97,99c97,99
< #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
< # . /etc/bash_completion
< #fi
---
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
The /bash/completion if block is actually UNCOMMENTED in the user .bashrc, not the other way around. I tried commenting out to see if that made a difference and it did not.
Something doesn't seem right. I also tried installing the bash_completion package to no avail.
Any tips?