Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20001122150559.24323.qmail@web4805.mail.yahoo.com> Date: Wed, 22 Nov 2000 16:05:59 +0100 (CET) From: =?iso-8859-1?q?Sylvain=20Petreolle?= Subject: Re: Newbie: read works incorrectly To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit --- schwarza AT gdls DOT com a écrit : > > The following statement: > > echo one two | while read line ; do > printf '%s\r\n' $line > done > > generates > > one > two > > I would have expected > > one two > The '\r\n' statement tells to printf to inser a new line, then remove it. ___________________________________________________________ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com