[Bash-completion-devel] Interesting problem with bash-completion

Adam Weinberger adamw at adamw.org
Sat Sep 18 21:59:32 UTC 2010


Dan -

That is certainly unusual. What version of bash do you have installed?
I cannot replicate your problem.

# Adam


On 17 September 2010 15:04, Dan D Niles <dan at more.net> wrote:
> I use bash-completion on my ubuntu desktop and it works fine.  I've
> added it to my FreeBSD servers, and I have an odd problem.  When I su or
> run other scripts I get some weird errors.  I can duplication the errors
> with just 'exec bash':
>
> # exec bash
> bash: _python: line 16: syntax error near unexpected token `('
> bash: _python: line 16: ` !(python|-?))'
> bash: error importing function definition for `_python'
> bash: _xz: line 15: syntax error near unexpected token `('
> bash: _xz: line 15: ` --decompress | --list | --test | -!(-*)[dlt]*)'
> bash: error importing function definition for `_xz'
> bash: _tar: line 8: syntax error near unexpected token `('
> bash: _tar: line 8: ` ?(-)[cr]*f)'
> bash: error importing function definition for `_tar'
>
> As far as I can tell, the syntax it is complaining about is valid.  It
> does not complain the first time the shell starts.  I'm quite baffled.
>
> I would be happy to provide more info or try some stuff out.
>
> Thanks,
>
> Dan
>
>
>



-- 
Adam Weinberger
adamw at adamw.org
http://www.vectors.cx



More information about the Bash-completion-devel mailing list