[hackers] [wmii] Quote $@ in some places.

From: Kris Maglione <jg_AT_suckless.org>
Date: Thu Apr 05 20:18:21 2007

changeset: 2056:3987c159a919
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Apr 05 14:15:15 2007 -0400
summary: Quote $@ in some places.

diff -r 59e0c1d1b25d -r 3987c159a919 cmd/wmii9rc.sh
--- a/cmd/wmii9rc.sh Mon Apr 02 06:07:01 2007 -0400
+++ b/cmd/wmii9rc.sh Thu Apr 05 14:15:15 2007 -0400
@@ -13,7 +13,7 @@ fi
 fi
 
 if [ -n "$1" ]; then
- exec $RC $@
+ exec $RC "$@"
 else
         true
 fi
diff -r 59e0c1d1b25d -r 3987c159a919 rc/wmiirc.sh
--- a/rc/wmiirc.sh Mon Apr 02 06:07:01 2007 -0400
+++ b/rc/wmiirc.sh Thu Apr 05 14:15:15 2007 -0400
@@ -49,8 +49,8 @@ eventstuff() {
                         exit;
                 esac
         Event Key
- fn=$(echo $@ | sed 's/[^a-zA-Z_0-9]/_/g')
- Key_$fn $@
+ fn=$(echo "$@" | sed 's/[^a-zA-Z_0-9]/_/g')
+ Key_$fn "$@"
         Event CreateTag
                 echo "$WMII_NORMCOLORS" "$@" | wmiir create "/lbar/$@"
         Event DestroyTag
@@ -170,8 +170,8 @@ Action() {
 Action() {
         action=$1; shift
         if [ -n "$action" ]; then
- Action_$action $@ \
- || conf_which $action $@
+ Action_$action "$@" \
+ || conf_which $action "$@"
         fi
 }
 
Received on Thu Apr 05 2007 - 20:18:21 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:33 UTC