[Bash-completion-devel] Bug#778282: bash-completion has syntax errors in the _parse_usage and _longopt functions

Erik Erik.Haller at gmail.com
Fri Feb 13 06:02:37 UTC 2015


Package: bash-completion
Version: 1:2.1-4
Severity: important

bash-completion contains syntax errors in two functions. Executing 

	bash /usr/share/bash-completion/bash_completion

Output:

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: _longopt: line 14: syntax error near unexpected token `('
bash: _longopt: line 14: ` --+([-a-z0-9_]))'
bash: error importing function definition for `_longopt'

This bug is important because it makes various packages fail. The
desktop-base package fails because of _parse_usage failing. desktop-base
is called by tasksel in a debian installation.

Changing roots shell to dash does not help.

-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash-completion depends on:
ii  bash  4.3-11+b1
ii  dpkg  1.17.23

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information



More information about the Bash-completion-devel mailing list