Package: openbox-gnome-session
Version: 3.6.1-4

The exact error when launching /usr/bin/openbox-gnome-session script is:
/usr/bin/openbox-gnome-session: 23: test: -lt: unexpected operator
/usr/bin/openbox-gnome-session: 23: test: =: unexpected operator
/usr/bin/openbox-gnome-session: 27: test: -lt: unexpected operator

These errors are Bash errors(due to the way Bash works with variables) that don't say where the real problem is. The real problems are:
1-gnome-session --version didn't answer anything so $VER hasn't been filled
2-$MAJOR and $MINOR are filled from a treatment upon $VER, so they stay empty too because of "1-" above.

Variables should always be protected in scripts to avoid this!!! This script doesn't respect the good practices. Additionally, a friendly error message would help the user to find where is the problem.

If you're interested, I can send you a patched script doing this.

Reply via email to