From d3702857be59228ab36d619868892e5795f6b616c0ba7a74985c6cbdd7347a71 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 5 Nov 2014 17:14:06 +0000 Subject: [PATCH] Accepting request 259716 from home:Ledest:misc fix bashisms OBS-URL: https://build.opensuse.org/request/show/259716 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/x11-tools?expand=0&rev=26 --- x11-tools.changes | 10 ++++++++++ xf86debug | 2 +- xim | 20 +++++++++----------- xim.template | 2 +- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/x11-tools.changes b/x11-tools.changes index 5ad0b14..c578572 100644 --- a/x11-tools.changes +++ b/x11-tools.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Nov 04 22:55:00 UTC 2014 - Led + +- fix bashsisms in xf86debug script more correctly + +------------------------------------------------------------------- +Sun Oct 19 20:46:00 UTC 2014 - Led + +- fix bashsisms + ------------------------------------------------------------------- Fri Aug 22 15:52:48 UTC 2014 - fcrozat@suse.com diff --git a/xf86debug b/xf86debug index c0686d5..766843d 100644 --- a/xf86debug +++ b/xf86debug @@ -27,7 +27,7 @@ ulimit -c unlimited corefile=`mktemp /tmp/core.Xorg.XXXXXXXXXX` echo -n "Starting X Server in Debugger ... " -gdb << EOF &> $tmpfile +gdb < $tmpfile 2>&1 file /usr/bin/Xorg set args ${1+"$@"} handle SIGUSR1 nostop diff --git a/xim b/xim index da509fd..ae67218 100644 --- a/xim +++ b/xim @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # $Id: xim,v 1.28 2004/12/07 11:04:59 mfabian Exp $ # @@ -124,9 +124,9 @@ fi # command line before using startx. In that case, don't # read the system wide default from /etc/sysconfig/language, # use the user supplied value instead: -if [ "$INPUT_METHOD" == "" ] ; then +if [ -z "$INPUT_METHOD" ] ; then echo "sourcing /etc/sysconfig/language to get the value of INPUT_METHOD" - source /etc/sysconfig/language + . /etc/sysconfig/language fi if [ "$INPUT_METHOD" != "" ]; then @@ -134,8 +134,8 @@ if [ "$INPUT_METHOD" != "" ]; then echo "Trying to start this user selected input method first ..." if [ -r "/etc/X11/xim.d/$INPUT_METHOD" ] ; then echo "sourcing /etc/X11/xim.d/$INPUT_METHOD" - source /etc/X11/xim.d/$INPUT_METHOD - if [ "$?" == "0" ]; then + . /etc/X11/xim.d/$INPUT_METHOD + if [ "$?" = "0" ]; then echo "Start of $INPUT_METHOD succeeded." gnome_ibus_workaround $INPUT_METHOD return 0; @@ -169,8 +169,8 @@ for subdir in $subdirlist ; do for im in /etc/X11/xim.d/$subdir/* ; do if [ -r $im ] ; then echo "sourcing $im ..." - source $im - if [ "$?" == "0" ]; then + . $im + if [ "$?" = "0" ]; then echo "$im started sucessfully" gnome_ibus_workaround $im return 0 @@ -183,7 +183,7 @@ for subdir in $subdirlist ; do fi done -if [ "$im_failed" == 0 ] ; then +if [ "$im_failed" = 0 ] ; then echo "There is no default input method for the current locale." else echo "All default input methods tried for the current locale failed." @@ -193,6 +193,4 @@ fi # the dummy input method "none" to get reasonable default settings # of the relevant environment variables: -source /etc/X11/xim.d/none - - +. /etc/X11/xim.d/none diff --git a/xim.template b/xim.template index ee0d8c6..339eaeb 100644 --- a/xim.template +++ b/xim.template @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright © 2001 SUSE LINUX GmbH Nuernberg, Germany #