]> git.lizzy.rs Git - bspwm.git/commitdiff
Use '--' as first argument for the `set` built-in
authorBastien Dejean <nihilhill@gmail.com>
Sun, 14 Jul 2013 12:15:36 +0000 (14:15 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Sun, 14 Jul 2013 12:15:36 +0000 (14:15 +0200)
That's what dash's manual specifies.

examples/panel/panel_bar
examples/panel/panel_dzen2

index ba2b3cd8945d3b593eed635ef6a64fbd93c2c8ff..e7b0ca2f837121c7592bd2f89fff3df8f47a4d62 100755 (executable)
@@ -13,7 +13,7 @@ while read -r line ; do
         W*)
             wm_infos=""
             IFS=':'
-            set - ${line#?}
+            set -- ${line#?}
             while [ $# -gt 0 ] ; do
                 item=$1
                 name=${item#?}
index 9e60729a16444ffe0177aa5e6b7032d8e8419a98..5d23dcb5bc591e8f9f813ed5ae852370f4a83a63 100755 (executable)
@@ -43,7 +43,7 @@ while read -r line ; do
             # window manager informations
             wm_infos="$PADDING"
             IFS=$FIELDIFS
-            set - ${line#?}
+            set -- ${line#?}
             while [ $# -gt 0 ] ; do
                 item=$1
                 case $item in
@@ -85,7 +85,7 @@ while read -r line ; do
             IFS=$NORMIFS
             ;;
     esac
-    set - $(printf '%s\0%s\0%s' "$wm_infos" "$title" "$sys_infos" | sed 's/\^[a-z]\+([^)]*)//g' | xargs -0 txtw -f "$font_family" -s "$font_size")
+    set -- $(printf '%s\0%s\0%s' "$wm_infos" "$title" "$sys_infos" | sed 's/\^[a-z]\+([^)]*)//g' | xargs -0 txtw -f "$font_family" -s "$font_size")
     left_width=$1
     center_width=$2
     right_width=$3