Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: <> redirection operator



On Jun 3,  4:10pm, Clint Adams wrote:
}
} Is this doing what it's meant to do?

Yes.

<> WORD
     Open file WORD for reading and writing as standard input.
                                            ^^^^^^^^^^^^^^^^^

All this means is that fd 0 is O_RDWR rather than O_RDONLY.  It still
opens exactly one descriptor.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author