Work around mawk bug that broke wmiirc.

This commit is contained in:
Kris Maglione 2010-06-10 03:23:35 -04:00
parent e602759b49
commit 53a479f79a
2 changed files with 12 additions and 9 deletions

10
NEWS
View File

@ -7,7 +7,15 @@
* Dock windows act more like dock windows * Dock windows act more like dock windows
* Fixed some managed move bugs * 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. * wmii9menu is now Xinerama aware.
* Install READMEs to $(PREFIX)/share/doc/wmii/. * Install READMEs to $(PREFIX)/share/doc/wmii/.
* Documentation updates. Add wmiir.1, wmii9menu.1. * Documentation updates. Add wmiir.1, wmii9menu.1.

View File

@ -194,19 +194,14 @@ wi_eventloop() {
if [ "$1" = -i ] if [ "$1" = -i ]
then cat then cat
else wmiir read /event else wmiir read /event
fi | awk '/./ { print; fflush() } END { print "" }' | fi |
while :; do while read wi_event; do
# Work around a dash bug.
# Only quit on successful read of a blank line.
read wi_event || continue
test -n "$wi_event" || break
IFS="$wi_newline" IFS="$wi_newline"
wi_arg=$(echo "$wi_event" | sed 's/^[^ ]* //') wi_arg=$(echo "$wi_event" | sed 's/^[^ ]* //')
unset IFS unset IFS
set -- $wi_event set -- $wi_event
event=$1; shift event=$1; shift
Event $event "$@" ( Event $event "$@" )
done done
true true
} }