This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: gawk not taking redirected input under command.com
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 7 Oct 2002 10:42:42 -0400
- Subject: Re: gawk not taking redirected input under command.com
- References: <20021007141426.38339.qmail@web40602.mail.yahoo.com>
- Reply-to: cygwin at cygwin dot com
On Mon, Oct 07, 2002 at 07:14:26AM -0700, Barry Buchbinder wrote:
> C:\> gawk '{print "x" $0 "y"}' < autoexec.bat
>gave no "x" but "y" was at the *beginning* of the line!
Calm down.
>C:\> gawk '{print $0 "yz" }' < autoexec.bat
>showed that what was happening was that the "yz" was *overwriting* the
>beginning of the line.
So, to summarize, this is a standard CRLF problem. If you look at the
output in od or less you can see what is going on.
I don't know why this version of gawk is having CRLF problems. I'll
check to see if this is a cygwin problem or a gawk problem but I suspect
it is a gawk problem.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/