Bug#367880: test statements

2006-05-19 Thread Osamu Aoki
On Fri, May 19, 2006 at 10:49:49PM +0100, Martin Orr wrote: > What happens is that when the > [ -n $VAR ] > test fails, the shell ignores this for set -e purposes because it is part of > a && line. But it still sets $? to 1, so as the last command in 90im-switch > is of this form it causes the who

Bug#367880: test statements

2006-05-19 Thread Martin Orr
What happens is that when the [ -n $VAR ] test fails, the shell ignores this for set -e purposes because it is part of a && line. But it still sets $? to 1, so as the last command in 90im-switch is of this form it causes the whole script to exit with status 1. So the . $SESSIONFILE command in Xse