If you use -u (treat unset varibles as errors): > kinit is /usr/kerberos/bin/kinit > /opt/thinlinc/etc/xstartup.d/01-tl-kinit.sh: line 11: KRB5CCNAME: unbound > variable > X connection to :1.0 broken (explicit kill or server shutdown). The way we check for unset variables causes this error: -z "${VAR}" We should do: -z "${VAR+}" or -z "${VAR+x}"
(In reply to comment #0) > We should do: > > -z "${VAR+}" > > or > > -z "${VAR+x}" Should be: -z ${VAR+} or -z ${VAR+x} without the quotation marks
Can probably be better solved by implementing bug 5099.
This is now no longer necessary with the changes in bug 5099. Our scripts no longer execute in a login shell mode. Hence we do not need this defensive programming style.