From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14574 invoked from network); 29 Mar 2006 09:34:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Mar 2006 09:34:06 -0000 Received: (qmail 80593 invoked from network); 29 Mar 2006 09:33:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Mar 2006 09:33:58 -0000 Received: (qmail 6368 invoked by alias); 29 Mar 2006 09:33:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10101 Received: (qmail 6359 invoked from network); 29 Mar 2006 09:33:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Mar 2006 09:33:49 -0000 Received: (qmail 79487 invoked from network); 29 Mar 2006 09:33:49 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 29 Mar 2006 09:33:49 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly16d.srv.mailcontrol.com (MailControl) with ESMTP id k2T9XkJl019184 for ; Wed, 29 Mar 2006 10:33:46 +0100 Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 29 Mar 2006 10:33:47 +0100 To: zsh-users@sunsite.dk Subject: Re: lost my space ... In-reply-to: <442A4D8E.4050206@ulpmm.u-strasbg.fr> References: <442A4D8E.4050206@ulpmm.u-strasbg.fr> Comments: In-reply-to Marc Chantreux message dated "Wed, 29 Mar 2006 11:04:14 +0200." Date: Wed, 29 Mar 2006 10:33:46 +0100 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 29 Mar 2006 09:33:47.0312 (UTC) FILETIME=[E1206B00:01C65313] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-05 (www.mailcontrol.com) on 10.68.0.126 Marc Chantreux wrote: > say this text as stdin : > > uid: suzan > description: R&D leader, > doesn't know unix > but skilled in C programming > > > the problem is that "while { read line }" will crunch the space at the > begin of the line. Use IFS= read line If you really want raw input lines, you might want the -r flag to read as well. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php