Sample Header Ad - 728x90

/usr/share/bash-completion/bash_completion parse error

0 votes
1 answer
2206 views
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!
Asked by Sơn Nguyễn Ngọc (9 rep)
Feb 19, 2021, 02:12 AM
Last activity: Jul 26, 2025, 02:05 AM