From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <53567454.2050509@gmail.com> Date: Tue, 22 Apr 2014 16:53:24 +0300 From: Alexander Kapshuk User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: 9fans@9fans.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] writing to /dev/$winid/addr Topicbox-Message-UUID: daf6e4ae-ead8-11e9-9d60-3106f5b1d025 Howdy, I'm working on a script where I want to get hold of a particular string and use it as a new name of a particular window. What I've tried so far, although not successfully, is writing to /dev/$winid/addr with the intention of then being able to read the string found from the /dev/$winid/data or /dev/$winid/xdata. acme(4) says, addr may be written with any textual address (line number, regular expression, etc.), in the format understood by button 3 but without the initial colon, including com- pound addresses, to set the address for text accessed through the data file. Here's an example of what I tried. echo '/[A-Z]+\![a-z0-9]+\![0-9a-z]+' >/dev/$winid/addr Which results in an 'address out of bounds' message being generated. How does one write to 'addr'? Clearly, the shortcoming is on my part. I'm just not sure what it is that's missing. Thanks.