delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/07/17:10:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 7 Oct 2002 17:11:42 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gawk not taking redirected input under command.com
Message-ID: <20021007211142.GA14261@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20021007141426 DOT 38339 DOT qmail AT web40602 DOT mail DOT yahoo DOT com> <20021007144242 DOT GE7767 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20021007144242.GE7767@redhat.com>
User-Agent: Mutt/1.4i

On Mon, Oct 07, 2002 at 10:42:42AM -0400, Christopher Faylor wrote:
>On Mon, Oct 07, 2002 at 07:14:26AM -0700, Barry Buchbinder wrote:
>>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.

I've uploaded a new "exp" version of gawk.  This version understands the
BINMODE variable setting which, AFAICT, was not really supported in gawk
before.

This won't necessarily solve the above problem however.  It just allows
one to force BINMODE if required.  Unfortunately, the BINMODE setting is
either "use the default" or "read files in binary".  The default is
currently based on the mount mode, unfortunately.

So far, my above assertion that this was going to be a gawk problem
seems to be wrong.  I think I will need to work around some automode
problems in the dll itself.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019