From mboxrd@z Thu Jan 1 00:00:00 1970 From: R I Feigenblatt To: gnu-win32@cygnus.com Subject: echo fails to behave and documented Date: Sat, 06 Mar 1999 12:06:00 -0000 Message-id: <3.0.2.32.19990306150608.007baec0@mail.earthlink.net> X-SW-Source: 1999-03/msg00159.html How come *** echo *** does NOT work as documented? (See below.) Why is octal 012 changed to the two-character sequence CR-LF? Yeah, I know DOS/Windows likes CR-LF. Please change behaviour or docs! Ron Feigenblatt *** ENCLOSURE FOLLOWS (Cygwin Beta 20.1 on Win 98) *** BASH.EXE-2.02$ echo -ne Line1\\012Line2> E:\\test.txt E:\>dir test.txt Volume in drive E is whatever Volume Serial Number is whatever Directory of E:\ TEST TXT 12 03-06-99 2:53p test.txt 1 file(s) 12 bytes E:\>debug test.txt -d 1168:0100 4C 69 6E 65 31 0D 0A 4C-69 6E 65 32 00 00 00 00 Line1..Line2.... BASH.EXE-2.02$ help echo echo: echo [-neE] [arg ...] Output the ARGs. If -n is specified, the trailing newline is suppressed. If the -e option is given, interpretation of the following backslash-escaped characters is turned on: ... \num the character whose ASCII code is NUM (octal). Ron Feigenblatt -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: R I Feigenblatt To: gnu-win32@cygnus.com Subject: echo fails to behave and documented Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <3.0.2.32.19990306150608.007baec0@mail.earthlink.net> X-SW-Source: 1999-03n/msg00159.html Message-ID: <19990331194500.9fLEYpf8adYnEKZHgaWiix9E4PHV5bcOwjj3D47OpBA@z> How come *** echo *** does NOT work as documented? (See below.) Why is octal 012 changed to the two-character sequence CR-LF? Yeah, I know DOS/Windows likes CR-LF. Please change behaviour or docs! Ron Feigenblatt *** ENCLOSURE FOLLOWS (Cygwin Beta 20.1 on Win 98) *** BASH.EXE-2.02$ echo -ne Line1\\012Line2> E:\\test.txt E:\>dir test.txt Volume in drive E is whatever Volume Serial Number is whatever Directory of E:\ TEST TXT 12 03-06-99 2:53p test.txt 1 file(s) 12 bytes E:\>debug test.txt -d 1168:0100 4C 69 6E 65 31 0D 0A 4C-69 6E 65 32 00 00 00 00 Line1..Line2.... BASH.EXE-2.02$ help echo echo: echo [-neE] [arg ...] Output the ARGs. If -n is specified, the trailing newline is suppressed. If the -e option is given, interpretation of the following backslash-escaped characters is turned on: ... \num the character whose ASCII code is NUM (octal). Ron Feigenblatt -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com