tmk: pass environment to P command - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 86ce4cedbf92c32ae857b9c193bc50c1c1070866 (DIR) parent 13666ca73ef0c29e9f4c6870899943578e637730 (HTM) Author: Russ Cox <rsc@swtch.com> Date: Sat, 27 Aug 2011 23:06:15 -0400 mk: pass environment to P command R=rsc http://codereview.appspot.com/4977041 Diffstat: M src/cmd/mk/mk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/src/cmd/mk/mk.c b/src/cmd/mk/mk.c t@@ -199,7 +199,7 @@ pcmp(char *prog, char *p, char *q, Shell *sh, Word *shcmd) Bflush(&bout); snprint(buf, sizeof buf, "%s '%s' '%s'\n", prog, p, q); - pid = pipecmd(buf, 0, 0, sh, shcmd); + pid = pipecmd(buf, envy, 0, sh, shcmd); while(waitup(-3, &pid) >= 0) ; return(pid? 2:1);