[Bug 60079] "shopt" xsession error upon login

Benjamin Reed launchpad at racoonfink.com
Tue Sep 12 14:04:33 UTC 2006


Public bug reported:

Binary package hint: gdm

I'm not sure if this is a gdm issue, or a bash issue, but the current
/etc/skel/.bashrc has a call to "shopt" which causes my login to fail.

I just upgraded to edgy from dapper with a dist-upgrade, and when I try
to log in, I get the following error:

/etc/gdm/PreSession/Default: Registering your session
/etc/gdm/PreSession/Default: running: /usr/X11R6/bin/sess
/etc/gdm/Xsession: Beginning session setup...
/home/ranger/.bashrc: 13: shopt: not found
/etc/bash_completion: 44: Syntax error: Bad substitution

This appears to be a problem with bash3 being more anal than bash2 about
POSIX shell compatibility when called as /bin/sh.  If I change
/etc/gdm/Xsession to have "#!/bin/bash" instead of "#!/bin/sh" the error
goes away.

either the skel files and bash_completion (at least) need to remove
their bash-isms (which is rather silly since they're provided by bash
and bash_completion respectively), or Xsession needs to use bash instead
of sh.

** Affects: gdm (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
"shopt" xsession error upon login
https://launchpad.net/bugs/60079




More information about the desktop-bugs mailing list