From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18643 invoked by alias); 21 Feb 2011 10:09:11 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15815 Received: (qmail 6282 invoked from network); 21 Feb 2011 10:09:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,MISSING_HEADERS, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=no version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 21 Feb 2011 10:08:52 +0000 From: Peter Stephenson CC: Subject: Re: stream buffering Message-ID: <20110221100852.3251e17c@pwslap01u.europe.root.pri> In-Reply-To: References: Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.68.0.163 On Fri, 18 Feb 2011 17:56:10 -0600 Rory Mulvaney 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 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