I am facing an error when run $ source ~/.bashrc. The error is /usr/share/bash-completion/bash_completion:1512: parse error near `|'.
bash_completion file (the first line is 1512) :
if ! [[ "$i" =~ ^\~.*|^\/.* ]]; then
if [[ "$configfile" =~ ^\/etc\/ssh.* ]]; then
i="/etc/ssh/$i"
else
i="$HOME/.ssh/$i"
fi
fi
Please help me solve this problem. Thanks!
echo $0)