From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4092 invoked from network); 23 Jun 2000 10:41:08 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Jun 2000 10:41:08 -0000 Received: (qmail 7099 invoked by alias); 23 Jun 2000 10:39:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12047 Received: (qmail 6993 invoked from network); 23 Jun 2000 10:38:27 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: About word splitting in read Date: Fri, 23 Jun 2000 14:37:27 +0400 Message-ID: <000701bfdcff$0694a7c0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: <200006231022.MAA06581@beta.informatik.hu-berlin.de> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal > > Errr... in what way does `read -r foo' not do what you want? > Sorry, I was (completely) wrong. The actual problem is not field splitting, but rather backslash elimination. About 'read -r' - manual states, it just does not treat final backslash as line continuation. Look: bor@itsrm2% read -r foo a b \ bor@itsrm2% print $foo a b \ but bor@itsrm2% read -r foo q\ g\ b bor@itsrm2% print $foo q g b bor@itsrm2% read -r foo q\ g\ b \ bor@itsrm2% print $foo q g b \ Hmm ... is it a bug? -andrej