[Xfce4-commits] [xfce/xfce4-session] 04/10: Non-POSIX compliant test used in startxfce4 (Bug 10828)

noreply at xfce.org noreply at xfce.org
Thu Aug 28 17:53:05 CEST 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-session.

commit c55ce35bcdb030cd11ac5fe98ec749918e434157
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Jul 20 18:09:22 2014 +0300

    Non-POSIX compliant test used in startxfce4 (Bug 10828)
    
    Patch and bug report by seejay
    The command line arguments "--help" and "--with-ck-launch"
    can't be used on systems which have a non-bash /bin/sh
    (e.g. Debian, as far as I'm aware). This is due to the use
    of "=="  instead of "=" in test commands, which is a bash
    extension.
---
 scripts/startxfce4.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/startxfce4.in b/scripts/startxfce4.in
index b346d8f..d0a74a9 100644
--- a/scripts/startxfce4.in
+++ b/scripts/startxfce4.in
@@ -24,7 +24,7 @@ then
   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 @@ then
       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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list