Your message dated Sat, 18 Apr 2015 00:36:18 -0300
with message-id <20150418033617.ge3...@cordes.ca>
and subject line Re: [Bash-completion-devel] Bug#778282: Cancel Bug
has caused the Debian Bug report #778282,
regarding bash-completion has syntax errors in the _parse_usage and _longopt
functions
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
778282: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778282
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
On Wed, Apr 15, 2015 at 05:47:11PM -0700, Erik Haller wrote:
> This is not a bug in the bash-completion package. Please cancel.
>
> The problem is caused by the ksu command in the krb5-user package.
>
> If you become root via "ksu -qe /bin/bash -a -l" and execute "bash
> /usr/share/bash-completion/bash_completion", you will see the errors as
> reported in this report.
The errors look like the result of extglob not being on. Does ksu
set POSIXLY_CORRECT in the environment, or something? It looks like
that will break interactive shells if you have that on AND choose to
load bash_completion in your .bashrc.
> If you become root via "sudo -i" or su, and execute "bash
> /usr/share/bash-completion/bash_completion", there will be no errors.
Thanks for following up on this when you discovered it wasn't
bash-completion's bug. A lot of old bug reports just sit around
forever.
For future reference, you could have sent your mail to
778282-d...@bugs.debian.org to close it yourself.
If you think it's worth getting the kerberos maintainers to look at
this, (like if there's a reason for setting POSIXLY_CORRECT?), you
could reoppen and reassign it to that package, or submit a new bug.
But more likely the bug is in your dotfiles, if they don't check that
the shell is dash before loading bash-completion. (That or root's
shell is never used, just your own shell run as root, since that's
what normal sudo does.)
--
#define X(x,y) x##y
Peter Cordes ; e-mail: X(peter@cor , des.ca)
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack
my day so wretchedly into small pieces!" -- Plautus, 200 BC
--- End Message ---
_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel