Subject: bug in sed?
From: [email-masked] (Chris Warth)

19 Dec 1996 11:07:15 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: [email-masked]
Original-Sender: [email-masked]

sed under gnu-win32 seems to append a "\r\n" pair to all of its
output - even if the input did not have one.  Is this a bug?  Or is
this behavior required in order to work under win32?  The 'sed' in MKS
toolkit does the same thing, incidentally, but it does not happen on
real BSD systems.

-csw

bash$ echo -n "foo "
foo bash$ echo -n "foo " | cat
foo bash$ echo -n "foo " | sed 's/o/x/g'
fxx
bash$ echo -n foo | /mksnt/mksnt/sed 's/o/x/g' | od -c
0000000000     f   x   x  \r  \n
0000000005

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".