← Back to team overview

touch-packages team mailing list archive

[Bug 962270] Re: /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

 

@lj-pinho, Unfortunately that solution will not work if you have Bash-
specific shell syntax in your .bash_profile (and why wouldn't you?).

I'm currently having this same issue because of using `[[ ]]` instead of
`[ ]` and source instead of `.`. I _knew_ there was a good reason I'd
previously changed all my `[[ ]]` to `[ ]` in my `.profile` file.
However, there's also a good reason to not have a `.bash_profile` and
only have a `.profile` but I'm forgetting what that is at the moment.
Can anyone enlighten me? I do use these dotfiles across Linux, Mac,
FreeBSD and (not recently) Solaris, UX, AIX, Cygwin, MinGW. Mainly my
dotfiles need to be portable across Linux and Mac.

Cheers!

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/962270

Title:
  /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator

Status in “lightdm” package in Ubuntu:
  Invalid

Bug description:
  I guess my .bash_profile isn't being executed with bash?  I get this
  in the first few lines of my .xsession-errors file:

  
  /usr/sbin/lightdm-session: 34: [: Linux: unexpected operator
  /usr/sbin/lightdm-session: 53: /home/barry/.bash_profile: source: not found

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/962270/+subscriptions