[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: strange problem logging in via gdm3



On 20/03/11 15:50, Camaleón wrote:
On Sun, 20 Mar 2011 11:19:13 +0000, Alan Chandler wrote:

(...)

The first thing that seems strange is the failure of .bashrc.   shopt
should be a built in command in bash.  The other thing is I can't find
and [[ lines in /etc/bash_completion at the lines mentioned.

HOWEVER - if I move .bashrc aside (ie rename it) and try to come in via
gdm I log in fine.

Anyone any ideas what could be wrong here?

Google points to the shell in use so, what shell are you using?

"ps -p $$" will tell.

Greetings,

Well it should be bash, and indeed $SHELL at the point it seems to go wrong says it is. (I suspected it may have been sourced in /bin/sh environment - but as far as I have been able to work out its inside the binary of gnome-session).

I have got round it by moving the majority of this .bashrc to /etc/bash.bashrc (there is a little bit setting up $PS1 that uses a script in ~/bin to output-git-head-or-blank which is kept) and it seems to work

--
Alan Chandler
http://www.chandlerfamily.org.uk


Reply to: