delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Tue, 11 Apr 2006 11:19:29 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: gawk 3.1.5-4 - how does BINMODE work.. tried BEGIN {BINMODE="rw";} |
Message-ID: | <20060411091929.GA31165@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <200604051824 DOT k35IOLTm023813 AT tigris DOT pounder DOT sol DOT net> <200604061304 DOT k36D4dqU030525 AT tigris DOT pounder DOT sol DOT net> <200604061335 DOT k36DZmv1030619 AT tigris DOT pounder DOT sol DOT net> |
Mime-Version: | 1.0 |
In-Reply-To: | <200604061335.k36DZmv1030619@tigris.pounder.sol.net> |
User-Agent: | Mutt/1.4.2i |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
On Apr 6 08:35, Tom Rodman wrote: > On Thu 4/6/06 8:04 CDT cygwin AT cygwin DOT 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 > > How do I get sed 4.1.5-1 to act in text mode again? Use dos2unix/unix2dos in scripts. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |