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

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

changeset: 2718:270f24346afc
branch: 3.9
tag: 3.9.2
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 1ee47ac2bc64 -r 270f24346afc NEWS
--- a/NEWS Thu Jun 10 03:22:22 2010 -0400
+++ b/NEWS Thu Jun 10 03:23:35 2010 -0400
@@ -1,3 +1,6 @@
+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.
diff -r 1ee47ac2bc64 -r 270f24346afc cmd/wmii.sh.sh
--- a/cmd/wmii.sh.sh Thu Jun 10 03:22:22 2010 -0400
+++ b/cmd/wmii.sh.sh Thu Jun 10 03:23:35 2010 -0400
@@ -196,19 +196,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:18 UTC

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