[Bug 60079] Re: "shopt" xsession error upon login

2010-05-03 Thread atomic-penguin
I came across this problem when doing a clean install of Lucid.

I had an existing /home partition which was not formatted. I'm not sure
if the installer overwrote my .bashrc, but I couldn't login to GDM after
the install was finished.  I overwrote my .bashrc with the default Lucid
skeleton version of .bashrc to confirm this would happen with a stock
file.

GDM would not let me log in to Gnome, KDE, or XFCE, because of this
error.  I wasted a good bit of time thinking that I had screwed
something up, or was missing something critical from the ubuntu-desktop
task.  Bug, or not, the problem should be addressed in the default
install.

A co-worker did an in-place upgrade and was not affected by this bug,
however, he still has a previous version of .bashrc in place after his
upgrade.

-- 
"shopt" xsession error upon login
https://bugs.launchpad.net/bugs/60079
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


[Bug 60079] Re: "shopt" xsession error upon login

2009-11-19 Thread joe14
While researching this problem further, I stumbled across this page:
https://wiki.ubuntu.com/DashAsBinSh

Prior to the release of 6.10, Ubuntu developers made a conscious
decision to change the default shell (the shell that is used to load
scripts in /etc/profile.d) from bash to dash. dash is smaller and faster
than bash, and its use increases the speed of startup operations. Having
read about this decision, I do not see this problem as a bug and I
withdraw my request to have this bug re-opened.

I would however like advice on how to circumvent this problem.

-- 
"shopt" xsession error upon login
https://bugs.launchpad.net/bugs/60079
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


[Bug 60079] Re: "shopt" xsession error upon login

2009-11-18 Thread joe14
I can confirm that this is a problem in Ubuntu 9.10 (Karmic Koala).

I have files in /etc/profile.d that use bash-isms (source and declare,
for example). When logging in from a regular terminal (pressing
CTRL+ALT+F2 at the gdm login window) there is no problem, but when I
login in from gdm, the login fails and my ~/.xsession-errors file
contains the following (I changed file and variable names, but you get
the picture):

/etc/gdm/Xsession: Beginning session setup...
/etc/profile.d/file1.sh: 39: source: not found
/etc/profile.d/file1.sh: 89: variable1: not found
/etc/profile.d/file1.sh: 122: [[: not found
/etc/profile.d/file2.sh: 35: source: not found
/etc/profile.d/file2.sh: 37: variable2: not found
/etc/profile.d/file2.sh: 39: Syntax error: word unexpected (expecting ")")

By changing /etc/gdm/Xsession to use /bin/bash instead of /bin/sh, the
errors went away and the GNOME session loaded successfully. Attached is
the appropriate patch file.

I request that this bug be re-opened and verified. Thank you!


** Attachment added: "This patch changes /etc/gdm/Xsession so that it uses 
/bin/bash instead of /bin/sh"
   http://launchpadlibrarian.net/35825989/patch

-- 
"shopt" xsession error upon login
https://bugs.launchpad.net/bugs/60079
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


[Bug 60079] Re: "shopt" xsession error upon login

2009-11-10 Thread dfsmith
This has reared itself again in Karmic.

/etc/gdm/Xsession uses /bin/dash as its parser, but sets the $SHELL
environment variable to /bin/bash (!).  This makes any ~/.profile that
uses bash-isms kill the gdm login process.

-- 
"shopt" xsession error upon login
https://bugs.launchpad.net/bugs/60079
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


[Bug 60079] Re: "shopt" xsession error upon login

2007-07-17 Thread tkoopa
I had a similar problem not being able to log in to the default GNOME
session ( "your last session lasted less than 10 seconds" message). The
problem came from the fact that I had created a .profile symlink linking
to .bashrc. unlink .profile fixed the problem for me

-- 
"shopt" xsession error upon login
https://bugs.launchpad.net/bugs/60079
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-03-30 Thread Daniel Holbach
As described in the previous comments, your report lacks the information
we need to investigate the problem further. We'll close this report for
now - please reopen it if you can give us the missing information.

** Changed in: gdm (Ubuntu)
   Status: Needs Info => Rejected

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-07 Thread Sebastien Bacher
the profile looks like the stock one, did you change any of the xorg
startup files? could that change make bash_completion be loaded?

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-07 Thread Benjamin Reed
attached is my /etc/profile

** Attachment added: "/etc/profile"
   http://librarian.launchpad.net/6339021/profile

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-07 Thread Sebastien Bacher
that's not likely due to some user file, what do you have to
/etc/profile? Could you copy it to a comment?

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-07 Thread Benjamin Reed
nope, I didn't edit /etc/profile, nor do I have a ~/.profile file, only
~/.bashrc

looking at it closely, it's the one from /etc/skel/.bashrc with a few
aliases and env vars added, and a "set -o vi"

I can't imagine that would trigger bash-specific behavior, but I
dunno...

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-07 Thread Sebastien Bacher
Thank you for confirming that Noah. Benjamin, did you change your
profile?

** Changed in: gdm (Ubuntu)
   Status: Unconfirmed => Needs Info

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-07 Thread Noah Slater
Right, I see what's going on here. I edited my /etc/profile not to check
for these two variables.

I would say that was a misunderstanding on my part and those others who
removed the checks.

I have added the checks back in and everything works fine.

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-06 Thread Sebastien Bacher
The bug is marked rejected because nobody reopened it, doing that now.
That doesn't really look like a gdm bug though, the /etc/gdm/Xsession
instructions work fine with sh. The /etc/profile file is loaded, it
sources bash.bashrc only if PS1 and BASH are set, is that the case when
gdm is starting?

** Changed in: gdm (Ubuntu)
   Status: Rejected => Unconfirmed

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-02-02 Thread Noah Slater
Bump. Why is this still at rejected?

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-31 Thread Noah Slater
No, my file of bash specific start up commands is in /etc/bash.bashrc
which is sourced from /etc/profile

You cannot put the hash bang at the top of a sourced file.

I do not think I am alone in having bash specific stuff in these files
which is why there are a few other cases of people complaining that
stuff is breaking here.

As it happens, I have now removed the line that sources /etc/bash.bashrc
from /etc/profile and put it in my ~/.bash_profile - but this is more of
a helpful tip for anyone who lands this way.

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-31 Thread Sebastien Bacher
Where do you have your bash specific commands, shouldn't your startup
file use "#!/bin/bash" if you are using them?

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-30 Thread Noah Slater
Thinking about it a little more... this is happening becuase I have bash
specific commands in one of my startup files. The gdm package is
sourcing my startup files under sh.

I think therefor that the bug is with the gdm package.

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-30 Thread Noah Slater
I think I have figured it out...

My /etc/profile was sourcing /etc/bash.bashrc every time.

You must have made a change to /etc/X11/Xsession recently that means
when you source /etc/profile under sh you end up sourcing
/etc/bash.bashrc.

I assume I am in the wrong here so I have removed the line from
/etc/profile that sources /etc/bash_bashrc and things seem to work.

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-30 Thread Noah Slater
https://launchpad.net/ubuntu/+source/bash/+bug/82276

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-30 Thread Noah Slater
Should I refile against Ubuntu bash?

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-30 Thread Sebastien Bacher
that looks like a bash bug, not a gdm one

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2007-01-30 Thread Noah Slater
I can confirm that this a bug for me too.

My global /etc/bash.bashrc file is sourcing /etc/bash_completion which
in turn exits with a error status of "2" with the following message:

/etc/bash_completion: 44: Syntax error: Bad substitution

You can reproduce by sourcing /etc/bash_completion your self in a test
script such as this:

--
#!/bin/sh

. /etc/bash_completion
--

Because this exits with an error status 2 it causes any session, be it
GNOME or Ion3 (in my case), to crash.

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2006-12-14 Thread Daniel Holbach
Your bug lacks information we would need to investigate further. We
are now going to close the bug - please reopen if you have more
information at hand.

** Changed in: gdm (Ubuntu)
   Status: Needs Info => Rejected

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2006-09-14 Thread Sebastien Bacher
the session to start is written to .dmrc. Do you have the same issue if
you pick "GNOME" from the sessions list?

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2006-09-13 Thread Benjamin Reed
How would I go about figuring out what session I've got?  When I'm in
gdm, it just says "last session" and an ls -la in my home dir doesn't
give me anything with "session" in the name.

I'm starting up in gnome, if that's what you're referring to.

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

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


[Bug 60079] Re: "shopt" xsession error upon login

2006-09-13 Thread Sebastien Bacher
Thanks for your bug. What session did you pick from gdm? gdm has no
reason to use .bashrc if bash is not used. Using to "shopt" to .bashrc
doesn't stop the session to start on my edgy desktop

** Changed in: gdm (Ubuntu)
   Importance: Untriaged => Low
 Assignee: (unassigned) => Ubuntu Desktop Bugs
   Status: Unconfirmed => Needs Info

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

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