bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

Error in line 35 - bash_completion

Open ivanferrer opened this issue 10 years ago • 6 comments

When I run: source ~/.bashrc , I get the following error line: /usr/share/bash-completion/bash_completion:35: parse error near `]]'

ivanferrer avatar Jul 24 '15 12:07 ivanferrer

Bash version?

PeterDaveHello avatar Jul 24 '15 15:07 PeterDaveHello

GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)

ivanferrer avatar Aug 03 '15 13:08 ivanferrer

What's the version of your bash_completion?

PeterDaveHello avatar Aug 03 '15 19:08 PeterDaveHello

bash_completion - programmable completion functions for bash 4.1+ Version 2 (2.04) RELEASE: 2.1 http://bash-completion.alioth.debian.org/

ivanferrer avatar Aug 05 '15 18:08 ivanferrer

I have no problem. Is this the same with your 35th line in bash_completion?

if [[ ${BASH_COMPLETION_DEBUG-} ]]; then                                                                                      
    set -v                                                                                                                    
else                                                                                                                          
    set +v                                                                                                                    
fi

PeterDaveHello avatar Aug 07 '15 10:08 PeterDaveHello

Exactly, but I believe the problem only occurs when the file is executed with an "invalid argument" or "null" entry , generating an invalid status in the process. As I 'm no master development , I just reported the problem, only.

ivanferrer avatar Aug 12 '15 20:08 ivanferrer