Public bug reported: Binary package hint: bash
Whenever I do bash_completion, the completion works fine. However, the weird thing is that whenever I start bash again from within the same shell, by running a script with bash or just plain calling bash, I get this long list of errors. I have no idea why it happens. This only happens after sourcing bash_completion bash: _openssl: line 25: syntax error near unexpected token `(' bash: _openssl: line 25: ` -@(in|out|oid))' bash: error importing function definition for `_openssl' bash: _service: line 4: syntax error in conditional expression: unexpected token `(' bash: _service: line 4: syntax error near `@(*' bash: _service: line 4: ` [[ ${COMP_WORDS[0]} != @(*init.d/!(functions|~)|service) ]] && return 0;' bash: error importing function definition for `_service' bash: _python: line 17: syntax error near unexpected token `(' bash: _python: line 17: ` !(python|-?))' bash: error importing function definition for `_python' bash: _apt_cache: line 7: syntax error in conditional expression: unexpected token `(' bash: _apt_cache: line 7: syntax error near `@(a' bash: _apt_cache: line 7: ` if [[ ${COMP_WORDS[i]} == @(add|depends|dotty|policy|rdepends|madison|show?(pkg|src|)) ]]; then' bash: error importing function definition for `_apt_cache' bash: _aspell: line 5: syntax error near unexpected token `(' bash: _aspell: line 5: ` @(-c|-p|check))' bash: error importing function definition for `_aspell' bash: _java_classes: line 5: syntax error in conditional expression: unexpected token `(' bash: _java_classes: line 5: syntax error near `*.@(j' bash: _java_classes: line 5: ` if [ -r $i ] && [[ "$i" == *.@(jar|zip) ]]; then' bash: error importing function definition for `_java_classes' bash: _gpg: line 5: syntax error near unexpected token `(' bash: _gpg: line 5: ` -@(s|-sign|-clearsign|-decrypt-files|-load-extension))' bash: error importing function definition for `_gpg' bash: _make: line 5: syntax error near unexpected token `(' bash: _make: line 5: ` -@(f|o|W))' bash: error importing function definition for `_make' bash: _apt_get: line 6: syntax error in conditional expression: unexpected token `(' bash: _apt_get: line 6: syntax error near `@(i' bash: _apt_get: line 6: ` if [[ ${COMP_WORDS[i]} == @(install|remove|source|build-dep) ]]; then' bash: error importing function definition for `_apt_get' bash: _cd: line 2: syntax error in conditional expression: unexpected token `(' bash: _cd: line 2: syntax error near `?(\' bash: _cd: line 2: ` if [[ "$cur" == ?(\\)\$* ]]; then' bash: error importing function definition for `_cd' bash: _mutt: line 13: syntax error near unexpected token `(' bash: _mutt: line 13: ` -@(a|f|F|H|i))' bash: error importing function definition for `_mutt' bash: _rsync: line 6: syntax error near unexpected token `(' bash: _rsync: line 6: ` --@(config|password-file|include-from|exclude-from))' bash: error importing function definition for `_rsync' bash: _dpkg: line 13: syntax error near unexpected token `(' bash: _dpkg: line 13: ` -@(c|i|A|I|f|e|x|X|-@(install|unpack|record-avail|contents|info| fsys-tarfile|field|control|extract)))' bash: error importing function definition for `_dpkg' bash: _tcpdump: line 5: syntax error near unexpected token `(' bash: _tcpdump: line 5: ` -@(r|w|F))' bash: error importing function definition for `_tcpdump' bash: _tar: line 8: syntax error near unexpected token `(' bash: _tar: line 8: ` ?(-)c*f)' bash: error importing function definition for `_tar' bash: _javac: line 9: syntax error near unexpected token `(' bash: _javac: line 9: ` -@(classpath|bootclasspath|sourcepath|extdirs))' bash: error importing function definition for `_javac' bash: _complete: line 28: syntax error near unexpected token `(' bash: _complete: line 28: ` -@(p|r))' bash: error importing function definition for `_complete' bash: _longopt: line 13: syntax error in conditional expression: unexpected token `(' bash: _longopt: line 13: syntax error near `@(m' bash: _longopt: line 13: ` if [[ "$1" == @(mk|rm)dir ]]; then' bash: error importing function definition for `_longopt' bash: _dpkg_reconfigure: line 5: syntax error near unexpected token `(' bash: _dpkg_reconfigure: line 5: ` -@(f|-frontend))' bash: error importing function definition for `_dpkg_reconfigure' bash: _java_find_classpath: line 3: syntax error in conditional expression: unexpected token `(' bash: _java_find_classpath: line 3: syntax error near `-@(c' bash: _java_find_classpath: line 3: ` if [[ "${COMP_WORDS[i]}" == -@(cp|classpath) ]]; then' bash: error importing function definition for `_java_find_classpath' bash: _dhclient: line 5: syntax error near unexpected token `(' bash: _dhclient: line 5: ` -@(cf|lf|pf|sf))' bash: error importing function definition for `_dhclient' bash: _rl_enabled: line 0: syntax error in conditional expression: unexpected token `(' bash: _rl_enabled: line 0: syntax error near `*$1+([' bash: _rl_enabled: line 0: `_rl_enabled () { [[ "$( bind -v )" = *$1+([[:space:]])on* ]]' bash: error importing function definition for `_rl_enabled' bash: _aptitude: line 13: syntax error in conditional expression: unexpected token `(' bash: _aptitude: line 13: syntax error near `@(i' bash: _aptitude: line 13: ` if [[ ${COMP_WORDS[i]} == @(install|reinstall|hold|unhold|markauto|unmarkauto|dist-upgrade|full-upgrade|download|show|forbid-version|purge|remove|changelog|why|why-not|keep|keep-all) ]]; then' bash: error importing function definition for `_aptitude' bash: _svn: line 35: syntax error in conditional expression: unexpected token `(' bash: _svn: line 35: syntax error near `@($' bash: _svn: line 35: ` if [[ $prev == @($optsParam) ]]; then' bash: error importing function definition for `_svn' bash: _cpio: line 9: syntax error near unexpected token `(' bash: _cpio: line 9: ` -@(E|F|I))' bash: error importing function definition for `_cpio' bash: _function: line 4: syntax error in conditional expression: unexpected token `(' bash: _function: line 4: syntax error near `@(d' bash: _function: line 4: ` if [[ $1 == @(declare|typeset) ]]; then' bash: error importing function definition for `_function' bash: _command: line 42: syntax error in conditional expression: unexpected token `(' bash: _command: line 42: syntax error near `@(d' bash: _command: line 42: ` if [[ "$cspec" != @(dir|file)names ]]; then' bash: error importing function definition for `_command' bash: _svnadmin: line 12: syntax error in conditional expression: unexpected token `(' bash: _svnadmin: line 12: syntax error near `@($' bash: _svnadmin: line 12: ` if [[ ${COMP_WORDS[1]} != @($helpCmds) ]] && [[ "$cur" != -* ]] || [[ ${COMP_WORDS[COMP_CWORD-1]} == @($optsParam) ]]; then' bash: error importing function definition for `_svnadmin' bash: _update_rc_d: line 11: syntax error in conditional expression: unexpected token `(' bash: _update_rc_d: line 11: syntax error near `?($' bash: _update_rc_d: line 11: ` if [[ "$prev" == ?($( echo [EMAIL PROTECTED] | tr " " "|" )) ]]; then' bash: error importing function definition for `_update_rc_d' bash: _java: line 20: syntax error near unexpected token `(' bash: _java: line 20: ` -@(cp|classpath))' bash: error importing function definition for `_java' bash: _find: line 5: syntax error near unexpected token `(' bash: _find: line 5: ` -@(max|min)depth)' bash: error importing function definition for `_find' bash: _svnlook: line 16: syntax error near unexpected token `(' bash: _svnlook: line 16: ` @(author|cat|date|dirs-changed|info|log))' bash: error importing function definition for `_svnlook' bash: _iconv: line 5: syntax error near unexpected token `(' bash: _iconv: line 5: ` -@(f|t|-@(from|to)-code))' bash: error importing function definition for `_iconv' bash: _update_alternatives: line 5: syntax error near unexpected token `(' bash: _update_alternatives: line 5: ` --@(altdir|admindir))' bash: error importing function definition for `_update_alternatives' bash: _javadoc: line 5: syntax error near unexpected token `(' bash: _javadoc: line 5: ` -@(overview|helpfile|stylesheetfile))' bash: error importing function definition for `_javadoc' bash: _usergroup: line 3: syntax error in conditional expression: unexpected token `(' bash: _usergroup: line 3: syntax error near `*@(\' bash: _usergroup: line 3: ` if [[ $cur = *@(\\:|.)* ]] && [ -n "$bash205" ]; then' bash: error importing function definition for `_usergroup' ** Affects: bash (Ubuntu) Importance: Undecided Status: New -- bash dumps errors after sourcing bash_completion https://bugs.launchpad.net/bugs/173493 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs