From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] finding acme window id from shell script? From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020403134211.CEEB219995@mail.cse.psu.edu> Date: Wed, 3 Apr 2002 14:45:01 +0100 Topicbox-Message-UUID: 72401006-eaca-11e9-9e20-41e7f4b1d025 > Can a shell script (or other program) find out from which acme window > it was invoked (other than looking for a 'known' filename > in/mnt/acme/index)? in the alef version of acme i made a change so that the window id was set in $acmewin so that shell scripts that wished to could operate on the window they were executed from. i did that largely so that i could implement aget and aput commands which got or put some text into the selection of the current window so you could do aget|fmt|aput however since the '|' functionality has been implemented that's not so useful. one feature i would find useful: an environment variable giving the filename of the current window (from the tag). to save valuable space in tags, it should probably be a single letter, maybe $% ? cp $% $%.old Edit ,>diff $% /fd/0