On Wed, Jun 9, 2010 at 6:14 AM, Kris Maglione <maglion...@gmail.com> wrote: > On Tue, Jun 08, 2010 at 09:06:55PM -0700, Suraj Kurapati wrote: >> >> On Tue, Jun 8, 2010 at 10:49 AM, David Engster <d...@randomsample.de> >> wrote: >>> >>> wmiir read /event | awk '/./ { print; fflush() } END { print "" }' >> >> What's the purpose of awk here? I see the same result both with and >> without awk in Arch Linux with awk = GNU Awk 3.1.8. > > There's a bug in dash 0.5.6's job control where a SIGCHLD interrupts the > read loop,
Why is anyone still writing scripts in bourne-derived shells? Just switch to rc and never look back, it will save you a huge amount of headaches and wasted time. It wasn't long ago that WMII just used rc for its scripting needs. uriel