acme: set $samfile (same as $%) during execution
R=rsc CC=plan9port.codebot http://codereview.appspot.com/6854092
This commit is contained in:
parent
e19fde3584
commit
2589c5c6ee
2 changed files with 3 additions and 0 deletions
|
|
@ -1421,6 +1421,7 @@ runproc(void *argvp)
|
|||
|
||||
if(filename){
|
||||
putenv("%", filename);
|
||||
putenv("samfile", filename);
|
||||
free(filename);
|
||||
}
|
||||
c->md = fsysmount(rdir, ndir, incl, nincl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue