Hello!

I'll happily answer any questions about this.

I can reproduce the problem on my box.

Just to re-iterate how to reproduce:
 * sudo ln -sf bash /bin/sh
 * Make sure you have bash script or two in "Startup Applications"
 * Have your .bash_profile stupidly source /etc/bash_completion (in my case by 
sourcing ~/.bashrc).
 * Log out.
 * Try to log back in.

It just kicks you right out and the following lines appear in the 
~/.xsession-errors file:
/etc/gdm/Xsession: Beginning session setup...
/etc/bash_completion.d/apport_completion: line 128: `_apport-bug': not a valid 
identifier

This is a some-what pathological setup, because of the .bash_profile
sourcing .bashrc, but a lot of people thrash around wrt to which file
does what in bash.

A fix for this is to wrap all of bash_completion in an if [[ ! shopt -oq
posix ]]; then .. fi block.

-- 
gdm can't login to any session
https://bugs.launchpad.net/bugs/596149
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to