[Bash-completion-devel] Bug#558127: Bug#558127: Bug#558127: bash-completion causes 'bash: [: too many arguments' messages
David Paleino
d.paleino at gmail.com
Sat Nov 28 08:03:33 UTC 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20091128/7f5e9399/attachment.pgp>
More information about the Bash-completion-devel
mailing list