[hackers] [wmii] Work around mawk bug that broke wmiirc. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Thu, 10 Jun 2010 23:50:19 +0000 (UTC)

changeset: 2720:adbb83b8ace3
parent: 2714:c645a195334f
user: Kris Maglione <maglione.k_AT_gmail.com>
date: Thu Jun 10 03:23:35 2010 -0400
files: NEWS cmd/wmii.sh.sh
description:
Work around mawk bug that broke wmiirc.

diff -r c645a195334f -r adbb83b8ace3 NEWS
--- a/NEWS Thu Jun 10 01:14:48 2010 -0400
+++ b/NEWS Thu Jun 10 03:23:35 2010 -0400
@@ -7,7 +7,15 @@
     * Dock windows act more like dock windows
     * Fixed some managed move bugs
 
-3.9b1:
+3.9.2:
+ * Work around mawk bug that broke wmiirc.
+
+3.9.1:
+ * Workaround a dash 0.5.6 bug that broke wmiirc.
+ * Noticably speed-up python wmiirc startup.
+ * Disable static linking which breaks wmiir in glibc 2.12.
+
+3.9:
     * wmii9menu is now Xinerama aware.
     * Install READMEs to $(PREFIX)/share/doc/wmii/.
     * Documentation updates. Add wmiir.1, wmii9menu.1.
diff -r c645a195334f -r adbb83b8ace3 cmd/wmii.sh.sh
--- a/cmd/wmii.sh.sh Thu Jun 10 01:14:48 2010 -0400
+++ b/cmd/wmii.sh.sh Thu Jun 10 03:23:35 2010 -0400
@@ -194,19 +194,14 @@
         if [ "$1" = -i ]
         then cat
         else wmiir read /event
- fi | awk '/./ { print; fflush() } END { print "" }' |
- while :; do
- # Work around a dash bug.
- # Only quit on successful read of a blank line.
- read wi_event || continue
- test -n "$wi_event" || break
-
+ fi |
+ while read wi_event; do
                 IFS="$wi_newline"
                 wi_arg=$(echo "$wi_event" | sed 's/^[^ ]* //')
                 unset IFS
                 set -- $wi_event
                 event=$1; shift
- Event $event "$@"
+ ( Event $event "$@" )
         done
         true
 }
Received on Thu Jun 10 2010 - 23:50:19 UTC

This archive was generated by hypermail 2.2.0 : Fri Jun 11 2010 - 00:00:20 UTC