commit 2589c5c6ee1f582810a037a934280b29fe8c5e55 from: Marius Eriksen via: Russ Cox date: Mon Nov 26 03:56:08 2012 UTC acme: set $samfile (same as $%) during execution R=rsc CC=plan9port.codebot http://codereview.appspot.com/6854092 commit - e19fde358468d55bc60664691978ae86c7641015 commit + 2589c5c6ee1f582810a037a934280b29fe8c5e55 blob - 3dc1f2afa2bfbdb9bae906b5b169b88ab6c6d4c2 blob + aa02f770dcaf3004f41612037826e96f3d7092b1 --- man/man1/acme.1 +++ man/man1/acme.1 @@ -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 blob - 39d05ecaf656ad29491c6322cf0322bc539aa75c blob + ae6668c6f9fc7ae3d49842631c433f08e68e617a --- src/cmd/acme/exec.c +++ src/cmd/acme/exec.c @@ -1421,6 +1421,7 @@ runproc(void *argvp) if(filename){ putenv("%", filename); + putenv("samfile", filename); free(filename); } c->md = fsysmount(rdir, ndir, incl, nincl);