On 5 November 2010 19:06, erik quanstrom <quans...@labs.coraid.com> wrote: >> > ('&', '&&', '||', if, '|', 'and '`{}') with something general >> > enough to replace mk, you'd be on to something. >> >> i did a mash-inspired version of mk as an inferno shell module once. >> it required no new syntax (although it could be confused by >> files named ":"...) > > what you did was very cool, but iirc this was in addition > to, not replacing the standard && || ... bits. one > could build pipelines and specify command order in one > unified way, no?
well, all it knows about are commands, fds and environment variables. if, && and || are all defined externally. a "mkfile" using the sh mk module looked something like this: #!/dis/sh load mk metarule %.dis : %.b { limbo -gw $stem.b } TARGETS=x.dis y.dis z.dis rule -V all : $TARGETS { echo done } mk it'd be trivial to add a bit of syntactic sugar a la mash, to make the syntax more mk-like, but it seemed better just to port mk itself.