2009/9/17 Rudolf Sykora <rudolf.syk...@gmail.com>: > Hello, > > is the <> operator a feature only of native plan 9? > It doesn't seem to work for me in p9p... > Is the right solution then, instead of > > program <> file > > write > > program < file > file_tmp > mv file_tmp file
It works fine in p9p, however it doesn't do what you want it to do. <> opens a file for reading and writing, on a single file descriptor (default 0 iirc). You can then duplicate that to stdout (>[1=0]) so the process is reading and writing to the same file, but I'd be very surprised if that satisfies your requirements. The tmp file trick is the most reliable idiom for this task, as far as I'm aware. -sqweek