It looks like sed is the issue. I'd forgotten there's no way to use the | operator in FreeBSD's sed without extended regexps, and there's no portable way to turn them on in sed. Please try the included patch.

--
Kris Maglione

For the time being, programming is a consumer job, assembly line
coding is the norm, and what little exciting stuff is being performed
is not going to make it compared to the mass-marketed crap sold by
those who think they can surf on the previous half-century's worth of
inventions forever.
        --Eric Naggum

diff --git a/rc/wmiirc.sh b/rc/wmiirc.sh
--- a/wmiirc
+++ b/wmiirc
@@ -196,7 +196,7 @@
        done
 }
 wi_events <<!
-$(events | sed 's/^    \|^        //')
+$(events | awk '{sub(/^        |^        /, ""); print}')
 $(local_events)
 !
 unset events local_events

Reply via email to