From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: echo is wrong... 8 Apr 1998 12:34:40 -0700 Message-ID: <01BD62C4.F53168D0.cygnus.gnu-win32@sos> To: "gnu-win32 AT cygnus DOT com" , "'marcus AT bighorn DOT dr DOT lucent DOT com'" marcus AT bighorn DOT dr DOT lucent DOT com wrote: > > In the Linux > > > > [nagyl AT piheno nagyl]$ echo "aaa"|od -c > > 0000000 a a a \n > > 0000004 > > > > In the windows NT bash > > > > bash-2.01$ echo aaa|od -c > > 0000000 a a a \r \n > > 0000005 > > > > > > What the hell is the \r ????? > > In the DOS/Win32 world, text files have CR LF line endings, as opposed to > Unix's LF only. Since echo generates text, it is simply following the > convention of the operating system and outputting a proper text file. > You're wrong. B19 _bash_ forces pipes to be text mode. Try the same in ash and feel the difference. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".