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

Re: stream buffering



On Fri, 18 Feb 2011 17:56:10 -0600
Rory Mulvaney <rorymulv@xxxxxxxxx> wrote:
> Sorry, I'm definitely referring to the type of I/O using read and
> print (or some other builtin created by a module).  And I don't
> necessarily mean in a script; it could just be from a loop on the
> command line where the loop reads or prints all lines in a file.
> 
> while read var ; do 
>   -something- 
> done

There are sysread and syswrite commands in the zsh/system module,
allowing you to read much larger chunks in one go.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



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