mk: pass environment to P command
R=rsc http://codereview.appspot.com/4977041
This commit is contained in:
parent
13666ca73e
commit
86ce4cedbf
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user