[Pkg-xfce-devel] Bug#742720: startxfce4: unexpected operator
Alexander Heinlein
alexander.heinlein at web.de
Wed Mar 26 16:45:36 UTC 2014
Package: xfce4-session
Version: 4.10.1-5
Severity: normal
Tags: patch
Hi,
the script startxfce4 contains two syntax errors, on line 27 and line 40.
These two lines are calling 'test' with the operaror '==' which should
really be just '='.
The fix is trivial:
--- a/usr/bin/startxfce4 2014-01-18 10:38:06.000000000 +0100
+++ b/usr/bin/startxfce4 2014-03-26 17:43:39.121732745 +0100
@@ -24,7 +24,7 @@
OPTS=""
for OPT in $*
do
- if test "x$OPT" == "x--help"
+ if test "x$OPT" = "x--help"
then
# print help and exit
echo "Usage:"
@@ -37,7 +37,7 @@
echo
exit 0
- elif test "x$OPT" == "x--with-ck-launch"
+ elif test "x$OPT" = "x--with-ck-launch"
then
# try to launch xfce4-session with ck-launch-session in xinitrc
XFCE4_SESSION_WITH_CK="1"
Regards
Alex
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages xfce4-session depends on:
ii libatk1.0-0 2.10.0-2
ii libc6 2.18-4
ii libcairo2 1.12.16-2
ii libdbus-1-3 1.8.0-2
ii libdbus-glib-1-2 0.102-1
ii libfontconfig1 2.11.0-2
ii libfreetype6 2.5.2-1
ii libgdk-pixbuf2.0-0 2.30.6-1
ii libglib2.0-0 2.38.2-5
ii libgtk2.0-0 2.24.22-1
ii libice6 2:1.0.8-2
ii libpango-1.0-0 1.36.3-1
ii libpangocairo-1.0-0 1.36.3-1
ii libpangoft2-1.0-0 1.36.3-1
ii libsm6 2:1.2.1-2
ii libwnck22 2.30.7-1
ii libx11-6 2:1.6.2-1
ii libxfce4ui-1-0 4.10.0-5
ii libxfce4util6 4.10.1-1
ii libxfconf-0-2 4.10.0-2
ii multiarch-support 2.18-4
ii xfce4-settings 4.10.1-2
ii xfconf 4.10.0-2
Versions of packages xfce4-session recommends:
ii consolekit 0.4.6-4
ii dbus-x11 1.8.0-2
ii upower 0.9.23-2+b1
ii x11-xserver-utils 7.7+2
ii xfdesktop4 4.10.2-3
ii xfwm4 4.10.1-2
ii xscreensaver 5.26-1
Versions of packages xfce4-session suggests:
pn fortunes-mod <none>
ii sudo 1.8.9p5-1
-- no debconf information
More information about the Pkg-xfce-devel
mailing list