Re: [wmii] wmiirc with no explicit /keys writes; in rc for wmii-4 tip

From: Anselm R. Garbe <>
Date: Fri, 23 Jun 2006 10:35:10 +0200

On Thu, Jun 22, 2006 at 11:10:28PM -0400, Kris Maglione wrote:
> I've written an wmiirc in rc which uses specially named functions to
> process events. It takes advantage of the fact that rc stores functions as
> environment variables to read the names of existing key processing
> functions and write them to the /keys file, rather than requiring the user
> to do so explicitly. Rather than using a switch-case event loop, as the
> default wmiirc does, it reads the event names, modifies them to match a
> function, and evals them. This script should behave almost exactly as the
> stock wmiirc (the one noticable difference being that Mod-a and Mod-p input
> is now rc syntax). Overall, I'm very happy with the outcome so far.
> This, of course, requires the rc shell from plan9port and is written for
> other plan9 utilities as well (sed, seq, uniq; It is written, also, for the
> "One true awk" (which is used on plan9 but is not in p9p), though gawk may
> work).

For those having installed 9base, I included the true awk into
it from Plan 9 (which hasn't been in p9p). However, I once
diffed it with the awk from NetBSD and OpenBSD, and the
differences haven been smaller than 50 LOC.


 Anselm R. Garbe  ><><  ><><  GPG key: 0D73F361
Received on Fri Jun 23 2006 - 10:35:10 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:09:58 UTC