On Sun, Jan 15, 2017 at 08:44:24PM +0100, Daniel Bullard wrote: > # 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 ! shopt -oq posix; then > if [ -f /usr/share/bash-completion/bash_completion ]; then > . /usr/share/bash-completion/bash_completion > elif [ -f /etc/bash_completion ]; then > . /etc/bash_completion > fi
You've somehow lost the ending of this if...fi command. You have two nested "if" commands but you've only got one "fi".