Debian Bug report logs -
#558127
bash-completion causes 'bash: [: too many arguments' messages
Reported by: Alexander Verbovetsky <alik@ejik.org>
Date: Thu, 26 Nov 2009 16:03:01 UTC
Severity: normal
Tags: moreinfo
Found in version bash-completion/1:1.1-3
Done: David Paleino <dapal@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, alik@ejik.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#558127; Package bash-completion.
(Thu, 26 Nov 2009 16:03:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexander Verbovetsky <alik@ejik.org>:
New Bug report received and forwarded. Copy sent to alik@ejik.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Thu, 26 Nov 2009 16:03:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: bash-completion
Version: 1:1.1-3
Severity: normal
After the yesterday upgrade of the bash-completion package, every
start of bash produces 3 messages 'bash: [: too many arguments'.
Removing
,----
| if [ -f /etc/bash_completion ]; then
| . /etc/bash_completion
| fi
`----
from ~/.bashrc stops the messages.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing-proposed-updates
APT policy: (900, 'testing-proposed-updates'), (900, 'testing'), (600, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash-completion depends on:
ii bash 4.0-4 The GNU Bourne Again SHell
bash-completion recommends no packages.
bash-completion suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#558127; Package bash-completion.
(Fri, 27 Nov 2009 21:03:02 GMT) (full text, mbox, link).
Acknowledgement sent
to David Paleino <d.paleino@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Fri, 27 Nov 2009 21:03:02 GMT) (full text, mbox, link).
Message #10 received at 558127@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
tags 558127 moreinfo
thanks
On Friday 27 November 2009 16:59:12, Alexander Verbovetsky wrote:
> After the yesterday upgrade of the bash-completion package, every
> start of bash produces 3 messages 'bash: [: too many arguments'.
That's not helping very much.
Could you please say whether your default login shell is /bin/sh instead of
/bin/bash ?
And, could you please do (while the section below is still removed):
$ set -x
$ . /etc/bash_completion
and post everything here, including the error you're reporting?
> Removing
> ,----
>
> | if [ -f /etc/bash_completion ]; then
> | . /etc/bash_completion
> | fi
>
> `----
> from ~/.bashrc stops the messages.
Sure, because you're not using bash-completion anymore ;)
Kindly,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, inline)]
Added tag(s) moreinfo.
Request was from David Paleino <d.paleino@gmail.com>
to control@bugs.debian.org.
(Fri, 27 Nov 2009 21:03:04 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#558127; Package bash-completion.
(Sat, 28 Nov 2009 01:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexander Verbovetsky <alik@ejik.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Sat, 28 Nov 2009 01:27:03 GMT) (full text, mbox, link).
Message #17 received at 558127@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
> Could you please say whether your default login shell is
> /bin/sh instead of /bin/bash ?
$ cat /etc/passwd | grep alik
alik:x:1000:1000:Alexander Verbovetsky,,,:/home/alik:/bin/bash
> And, could you please do (while the section below is still removed):
> $ set -x
> $ . /etc/bash_completion
> and post everything here, including the error you're reporting?
attached
Regards,
Alexander
[bug558127-1.zip (application/zip, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#558127; Package bash-completion.
(Sat, 28 Nov 2009 08:06:07 GMT) (full text, mbox, link).
Acknowledgement sent
to David Paleino <d.paleino@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Sat, 28 Nov 2009 08:06:07 GMT) (full text, mbox, link).
Message #22 received at 558127@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Saturday 28 November 2009 02:16:21, Alexander Verbovetsky wrote:
> > And, could you please do (while the section below is still removed):
> > $ set -x
> > $ . /etc/bash_completion
> > and post everything here, including the error you're reporting?
>
> attached
+++ '[' = GNU -o Linux = Cygwin ']'
bash: [: too many arguments
(and many similar ones)
That code in bash-completion really is:
[ $USERLAND = GNU -o $UNAME = Cygwin ]
so, obviously, $USERLAND is not being set there:
$ grep USERLAND bug558127-1.txt
$
Could you please grep it in /etc/bash_completion ?
Also, at the end, $USERLAND is unset together with other internal variables,
but your log doesn't show that:
++ unset UNAME RELEASE default dirnames filenames have nospace bashdefault
plusdirs
(the code instead says:
unset UNAME USERLAND default dirnames filenames have nospace bashdefault \
plusdirs compopt
)
I believe you edited something, or the upgrade was not successful, thus you're
mixing files from different releases of bash-completion.
Try:
# apt-get --reinstall install bash-completion
Please let me know,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#558127; Package bash-completion.
(Sat, 28 Nov 2009 15:27:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexander Verbovetsky <alik@ejik.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Sat, 28 Nov 2009 15:27:04 GMT) (full text, mbox, link).
Message #27 received at 558127@bugs.debian.org (full text, mbox, reply):
> I believe you edited something, or the upgrade was not
> successful, thus you're mixing files from different releases of
> bash-completion.
>
> Try:
> # apt-get --reinstall install bash-completion
Yes, it's true: I had an old /etc/bash_completion
Somehow an upgrade and 'apt-get --reinstall install' don't
suggest to update it, just create /etc/bash_completion.dpkg-dist
After
# mv bash_completion.dpkg-dist bash_completion
the problem disappeared.
Thank you!
Best regards,
Alexander
Reply sent
to David Paleino <dapal@debian.org>:
You have taken responsibility.
(Sat, 28 Nov 2009 16:12:05 GMT) (full text, mbox, link).
Notification sent
to Alexander Verbovetsky <alik@ejik.org>:
Bug acknowledged by developer.
(Sat, 28 Nov 2009 16:12:05 GMT) (full text, mbox, link).
Message #32 received at 558127-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Saturday 28 November 2009 16:24:32, Alexander Verbovetsky wrote:
> > I believe you edited something, or the upgrade was not
> > successful, thus you're mixing files from different releases of
> > bash-completion.
> >
> > Try:
> > # apt-get --reinstall install bash-completion
>
> Yes, it's true: I had an old /etc/bash_completion
>
> Somehow an upgrade and 'apt-get --reinstall install' don't
> suggest to update it, just create /etc/bash_completion.dpkg-dist
That's because you probably told apt not to install the maintainer's version.
This will ultimately be fixed when we (as upstream) move everything out of
/etc/, thus avoiding tools such as APT consider it (and files in
bash_completion.d/) as configuration files.
> After
> # mv bash_completion.dpkg-dist bash_completion
> the problem disappeared.
Great, closing the bug.
Kindly,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 27 Dec 2009 07:32:37 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 10:00:37 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.