Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just upgraded to 13.04, and suddenly I get xsession errors in my .bashrc on login. There is nothing wrong with the .bashrc file--I can source it from a terminal login, and after I get into the desktop it also sources fine. But during the desktop login there are errors in the following two sections:

PS1="\[\e[1;34m\]---\W---|\[\e[0m\] "

.xsession-errors says: /usr/sbin/lightdm-session: 9: [: up: unexpected operator

for i in {1..3} 
do
    export dc$i="bhawkins@dc-$i...edu"
done

.xsession-errors says: /usr/sbin/lightdm-session: 79: bad identifier dc{1..3}

The .bashrc file has not changed since upgrading, and of course there is no syntax error. Is there maybe something in 13.04 that is referencing .bashrc in a new way, using a different shell that doesn't understand basic bash?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.