This is the mail archive of the 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

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
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