Re: [bash-completion] syntax error near unexpected token '<' on line 123 in bash_completion.d/git
- From
solsTiCe d'Hiver <solstice.dhiver@gmail.com>
- Date
- Jul 25, 2010, 22:19 UTC
- Message-ID
- <1280096368.7211.2.camel@soho.example.org>
- In-Reply-To
- <4C4C982C.20904@pileofstuff.org>
Le dimanche 25 juillet 2010 à 21:01 +0100, Andrew Sayers a écrit :
Show 6 quoted lines
> bash 4.1.5 always prepends "bash: " > to such errors for me: > > $ while false ; do echo foo ; done < ; > bash: syntax error near unexpected token `;' >
bash 4.1.7 does that too here.
> If this is the complete error text, then I suspect you may have somehow > got bash completion in a non-bash shell. >
the complete message is: /etc/bash_completion.d/git: line 123: syntax error near unexpected token '<' /etc/bash_completion.d/git: line 123: done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash > \.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')
> Could you add this on line 98 and let me know what it says: > echo $BASH_VERSION $BASHOPTS
When I add the above command at line 98, it shows it is really bash running: 4.1.7(2)-release cmdhist:expand_aliases:extglob:extquote:force_fignore:interactive_comments:progcomp:promptvars:sourcepath