From 9aa1c92f743a7bf2ac0b062b0c075dc610b3e335 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 4 Jan 2005 22:41:27 +0000 Subject: add new | syntax. syntax will change. --- src/cmd/mk/run.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/mk/run.c') diff --git a/src/cmd/mk/run.c b/src/cmd/mk/run.c index 3c0c7f3e..439cc0a5 100644 --- a/src/cmd/mk/run.c +++ b/src/cmd/mk/run.c @@ -59,7 +59,7 @@ sched(void) events[slot].job = j; buf = newbuf(); e = buildenv(j, slot); - shprint(j->r->recipe, e, buf); + shprint(j->r->recipe, e, buf, j->r->shellt); if(!tflag && (nflag || !(j->r->attr&QUIET))) Bwrite(&bout, buf->start, (long)strlen(buf->start)); freebuf(buf); @@ -82,7 +82,7 @@ sched(void) flags = 0; else flags = "-e"; - events[slot].pid = execsh(flags, j->r->recipe, 0, e); + events[slot].pid = execsh(flags, j->r->recipe, 0, e, j->r->shellt, j->r->shellcmd); usage(); nrunning++; if(DEBUG(D_EXEC)) @@ -145,7 +145,7 @@ again: /* rogue processes */ if(buf[0]){ e = buildenv(j, slot); bp = newbuf(); - shprint(j->r->recipe, e, bp); + shprint(j->r->recipe, e, bp, j->r->shellt); front(bp->start); fprint(2, "mk: %s: exit status=%s", bp->start, buf); freebuf(bp); -- cgit v1.2.3