| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-Id: | <3.0.2.32.19990306150608.007baec0@mail.earthlink.net> |
| X-Sender: | docdtv AT mail DOT earthlink DOT net |
| X-Mailer: | QUALCOMM Windows Eudora Light Version 3.0.2 (32) |
| Date: | Sat, 06 Mar 1999 15:06:08 -0500 |
| To: | gnu-win32 AT cygnus DOT com |
| From: | R I Feigenblatt <docdtv AT earthlink DOT net> |
| Subject: | echo fails to behave and documented |
| Mime-Version: | 1.0 |
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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |