Commits

Marius Eriksen  committed 27ec22f

acme: set $samfile (same as $%) during execution

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/6854092

Committer: Russ Cox <rsc@swtch.com>

  • Participants
  • Parent commits c5bd722

Comments (0)

Files changed (2)

File man/man1/acme.1

 .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

File src/cmd/acme/exec.c

 
 		if(filename){
 			putenv("%", filename);
+			putenv("samfile", filename);
 			free(filename);
 		}
 		c->md = fsysmount(rdir, ndir, incl, nincl);