From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from duke.felloff.net ([216.126.196.34]) by ur; Thu Sep 22 04:50:38 EDT 2016 Message-ID: Date: Thu, 22 Sep 2016 10:50:31 +0200 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] file name from sam ! In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: generic strategy diff -r 9319c4c3a2f1 sys/src/cmd/sam/shell.c --- a/sys/src/cmd/sam/shell.c Wed Sep 21 21:57:08 2016 +0200 +++ b/sys/src/cmd/sam/shell.c Thu Sep 22 10:48:46 2016 +0200 @@ -93,6 +93,7 @@ close(0); /* so it won't read from terminal */ open("/dev/null", 0); } + putenv("f", Strtoc(&f->name)); execl(SHPATH, SH, "-c", Strtoc(&plan9cmd), nil); exits("exec"); } -- cinap