> % {echo 'addr=dot'; 9p read acme/70/addr >[1=2]} | 9p write acme/70/ctl
> 0 0 %
>
> No help. Am I doing something wrong?
Addr is reset to 0,0 once opened. So, you need to perform these
operations in order: open addr; write ctl; then read addr.
There's a nice way to do this if you can give rc access to the acme
files (try 9pfuse(4) with FUSE).
;9pfuse unix!`{namespace}^/acme mnt
;<mnt/acme/1/addr{
echo 'addr=dot'>>mnt/1/ctl;
cat;
}
93 234 ;
By the way, your question motivated me to give 9pfuse a try. Also,
it lead to my realization that, in rc, you can put the redirections
in front of the command. Hooray!
Eoghan