mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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
|
@ -527,6 +527,8 @@ producing output in a window labeled
|
|||
.BR /home/rob/sam/+Errors .
|
||||
The environment of such commands contains the variable
|
||||
.B $%
|
||||
and
|
||||
.B $samfile
|
||||
with value set to the filename of the window in which the command is run,
|
||||
and
|
||||
.B $winid
|
||||
|
|
|
@ -1421,6 +1421,7 @@ runproc(void *argvp)
|
|||
|
||||
if(filename){
|
||||
putenv("%", filename);
|
||||
putenv("samfile", filename);
|
||||
free(filename);
|
||||
}
|
||||
c->md = fsysmount(rdir, ndir, incl, nincl);
|
||||
|
|
Loading…
Reference in a new issue