From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: Micah Stetson Date: Fri, 5 Mar 2010 19:37:12 -0800 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: [9fans] acme(4) and addr=dot Topicbox-Message-UUID: e14f6c7a-ead5-11e9-9d60-3106f5b1d025 I think this may apply to all versions of acme, but I'm running into it on p9p. First, acme(4) claims that a read on a window's addr file returns the current address as a pair of character offsets m and n, in '#m,#n' format or just '#m' if m and n are equal. It looks like it really returns m and n as two space-padded integer values. But that's just a documentation bug. What's really bothering me is that I can't seem to get the value of dot. I've tried this: % echo -n 'addr=dot' | 9p write acme/70/ctl % 9p read acme/70/addr 0 0 % Window 70's dot is somewhere on line 16. Thinking maybe the ctl file had to stay open, I tried this: % {echo 'addr=dot'; 9p read acme/70/addr >[1=2]} | 9p write acme/70/ctl 0 0 % No help. Am I doing something wrong? Micah