X-Spam-Check-By: sourceware.org
Message-Id: <200604112021.k3BKLZ1w016971@tigris.pounder.sol.net>
From: cygwin@trodman.com (Tom Rodman)
Reply-to: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: awk -v BINMODE=rw '{print}' # future sed revs binary too?
In-reply-to: <20060411091929.GA31165@calimero.vinschen.de>
References: <200604051824.k35IOLTm023813@tigris.pounder.sol.net> <200604061304.k36D4dqU030525@tigris.pounder.sol.net> <200604061335.k36DZmv1030619@tigris.pounder.sol.net> <20060411091929.GA31165@calimero.vinschen.de>
Date: Tue, 11 Apr 2006 15:21:34 -0500
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue 4/11/06 11:19 +0200 cygwin@cygwin.com wrote:
> On Apr  6 08:35, Tom Rodman wrote:
> > On Thu 4/6/06 8:04 CDT cygwin@cygwin.com wrote:
> > > OK - I read Corinna's ANNOUNCEMENT on gawk-3.1.5-4.  I'll try the BINMODE variable.
> > 
> > I read the info page on gawk and BINMODE, it does not seem to be working:
> > 
> >   ~ $ cygcheck -c gawk
> >   Cygwin Package Information
> >   Package              Version        Status
> >   gawk                 3.1.5-4        OK
> >   ~ $ printf "\r\n"|awk 'BEGIN {BINMODE=3;}; {print}'|od -c
> >   0000000  \n
> >   0000001
> >   ~ $ printf "\r\n"|awk 'BEGIN {BINMODE="rw";}; {print}'|od -c
> >   0000000  \n
> >   0000001
> 
> `info gawk' shows that BINMODE must be set before the awk script gets
> executed.  Use the -v option, like this:
> 
>   printf "\r\n" | awk -v BINMODE=rw '{print}' | od -c

Thanks Corinna, that worked; nice that your back..

> > How do I get sed 4.1.5-1 to act in text mode again?  
> 
> Use dos2unix/unix2dos in scripts.

So the change to sed is intentional, I assume.  I always thought 'sed' should be
binary by default, but for years the cygwin version was not.

Will you reassure me that sed will stay this way?  :->

--
thanks again,
Tom

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

