From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sun, 5 Nov 2006 23:30:22 -0500 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Filename Referencing in Sam In-Reply-To: <454ea92a.h5aQHSfEj4QeTKSB%yard-ape@telus.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <454ea92a.h5aQHSfEj4QeTKSB%yard-ape@telus.net> Topicbox-Message-UUID: dafff596-ead1-11e9-9d60-3106f5b1d025 I added this to the plan9port sam over the summer. The name of the current file is exported as $samfile. The code hasn't made it into Plan 9 but if you want it, see the top of http://swtch.com/usr/local/plan9/src/cmd/sam/shell.c Russ