/usr/sbin/lightdm-session is a script executed with /bin/sh (see shebang line 
"#!/bin/sh").
It sources $HOME/.profile (and some others), not $HOME/.bash_profile.

So things specific to bash and not in sh are not recognized, for example:
if [[ "$x" == "yes " || "$y" != "no" ]]
then
fi

must be written:
if [ "$x" == "yes" -o "$y" != "no" ]
then
fi

Another way to overide this is to modify /usr/sbin/lightdm-session: replace 
"/bin/sh" by "/bin/bash"
Everything wich is good for sh is good for bash (but not the opposite).

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

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to