From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3951 invoked from network); 23 Jun 2000 10:23:17 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Jun 2000 10:23:17 -0000 Received: (qmail 5614 invoked by alias); 23 Jun 2000 10:23:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12046 Received: (qmail 5607 invoked from network); 23 Jun 2000 10:23:00 -0000 Date: Fri, 23 Jun 2000 12:22:57 +0200 (MET DST) Message-Id: <200006231022.MAA06581@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Fri, 23 Jun 2000 14:16:41 +0400 Subject: Re: About word splitting in read Andrej Borsenkow wrote: > The last patch reminded me ... > > Currently we can > > - either read in the whole line (with length unknown in advance) theat > is IFS-splitted > - or read in fixed number of raw characters > > Several times I wished, we could read in the whole line but in *raw* > mode, that is, without any word splitting. It is somewhat hard to > implement this, as we end up with too long/incomplete line so we need > some sort of buffered IO on top of read etc > > How hard would be to add this to read? With semantic "read in the whole > line and assign it to scalar unchanged". Errr... in what way does `read -r foo' not do what you want? Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de