mirror of
https://github.com/0intro/wmii
synced 2025-02-19 15:54:24 +03:00
Work around a dash bug prematurely killing the event loop.
This commit is contained in:
parent
185fdef6f3
commit
fd8ecb1245
@ -196,8 +196,13 @@ wi_eventloop() {
|
||||
if [ "$1" = -i ]
|
||||
then cat
|
||||
else wmiir read /event
|
||||
fi | while read wi_event
|
||||
do
|
||||
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
|
||||
|
||||
IFS="$wi_newline"
|
||||
wi_arg=$(echo "$wi_event" | sed 's/^[^ ]* //')
|
||||
unset IFS
|
||||
|
Loading…
x
Reference in New Issue
Block a user