This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
echo fails to behave and documented
- To: gnu-win32@cygnus.com
- Subject: echo fails to behave and documented
- From: R I Feigenblatt <docdtv@earthlink.net>
- Date: Sat, 06 Mar 1999 15:06:08 -0500
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
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