FS#22978 - Errors when loading grub2-common related completion using bash-completion

Attached to Project: Arch Linux
Opened by Gal Gur-Arie (gal_ga) - Sunday, 20 February 2011, 15:35 GMT
Last edited by Ionut Biru (wonder) - Sunday, 20 February 2011, 16:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The bash_completion file: /etc/bash_completion.d/grub has syntax errors.
This has caused me error while trying to login a Gnome session.

I've used the following workaround in order to solve the problem:
- I've edited my ~/.bashrc file
- Commented the block which is using the bash completion:
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi



Additional info:
* package version(s): grub2-common 1.99~rc1-3
* config and/or log files etc.

cat ~/.xsession-errors
/etc/gdm/Xsession: Beginning session setup...
/etc/bash_completion.d/git: line 128: syntax error near unexpected token `<'
/etc/bash_completion.d/git: line 128: ` done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')'
/etc/bash_completion.d/grub: line 417: `_grub_mkpasswd-pbkdf2': not a valid identifier

Steps to reproduce:
1). Install bash_completion
2). Enable it in your user's bashrc file by adding:
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

to ~/.bashrc

3). At the GDM screen enter user+password

Expected result:
Enter active Gnome (or other) session

Buggy Result:
I've returned back to the GDM screen

The local xsession error file had:

cat ~/.xsession-errors
/etc/gdm/Xsession: Beginning session setup...
/etc/bash_completion.d/git: line 128: syntax error near unexpected token `<'
/etc/bash_completion.d/git: line 128: ` done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')'
/etc/bash_completion.d/grub: line 417: `_grub_mkpasswd-pbkdf2': not a valid identifier
This task depends upon

Closed by  Ionut Biru (wonder)
Sunday, 20 February 2011, 16:47 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#22977 

Loading...