I'm getting the following error output when trying to start Neovim ($ nvim ...):
bash: _longopt: line 6: syntax error near unexpected token `('
bash: _longopt: line 6: ` --!(no-*)dir*)'
bash: error importing function definition for `_longopt'
bash: _parse_usage: line 16: syntax error near unexpected token `('
bash: _parse_usage: line 16: ` -?(\[)+([a-zA-Z0-9?]))'
bash: error importing function definition for `_parse_usage'
bash: _services: line 5: syntax error near unexpected token `('
bash: _services: line 5: ` COMPREPLY=($(printf '%s\n' ${sysvdirs[0]}/!($_backup_glob|functions|README)));'
What can I do to resolve this? It worked just a second ago... all that I did was remove a ROS source statement from my bashrc using nvim, and since then it will not work.
extgloboption unset I think – steeldriver May 27 '25 at 01:13bash-completion. Your question is a possible duplicate of https://askubuntu.com/questions/1001653/why-am-i-getting-parse-usage-error-on-function-invocation-in-bash. Please check the suggestions listed in this thread. If the problem persists, try to create a new user and runnvim. – Mando Мандо May 28 '25 at 14:03